module Google::Auth::IDTokens
def verify_oidc token,
-
(VerificationError)
- if the token verification failed. -
(KeySourceError)
- if the key source failed to obtain public keys
Returns:
-
(Hash)
- The decoded token payload.
Parameters:
-
iss
(String, Array
) -- The expected issuer. At least, nil -
azp
(String, Array
) -- The expected authorized party, nil -
aud
(String, Array
) -- The expected audience. At least, nil -
token
(String
) -- The ID token to verify
def verify_oidc token, aud: nil, azp: nil, iss: OIDC_ISSUERS verifier = Verifier.new key_source: oidc_key_source, aud: aud, azp: azp, iss: iss verifier.verify token end