Class OidcTokenAuthenticationMechanism

java.lang.Object
google.registry.request.auth.OidcTokenAuthenticationMechanism
All Implemented Interfaces:
AuthenticationMechanism

public abstract class OidcTokenAuthenticationMechanism extends Object implements AuthenticationMechanism
An authentication mechanism that verifies the OIDC token.

Currently, two flavors are supported: one that checks for the OIDC token as a regular bearer token, and another that checks for the OIDC token passed by IAP. In both cases, the AuthResult with the highest AuthSettings.AuthLevel possible is returned. So, if the email address for which the token is minted exists both as a User and as a service account, the returned AuthResult is at AuthSettings.AuthLevel.USER.

See Also: