Why do I get AMBIGUOUS_CREDENTIALS on an operation that needs no sign-in?
It is the one check such an operation still makes. An operation that needs
no sign-in ignores the Authorization header, but a bearer token sent
together with a session cookie is refused there too.