lulliezy
lulliezy

Reputation: 2043

Google auth server response and user id

am trying to understand google's auth server response from https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=XYZ123. I got most of it, am only stuck with jti and kid and have no idea what they are for, some one please explain, am trying to find the authenticated user id, or doesn't google provide id for the authenticated user. Thanks in advance

sample auth response

Upvotes: 1

Views: 324

Answers (1)

Gerik
Gerik

Reputation: 736

It appears under the hood the google authentication system is supported by Okta. Here are the descriptions of those values from their documentation:

JTI is a unique identifier for this access token for debugging and revocation purposes. Type: String

kid identifies the public-key used to sign the access_token. The corresponding public-key can be found via the JWKS in the discovery document. Type: String

I don't know why google doesn't have it listed in their documentation, but this should be what you need.

Sources:

https://developer.okta.com/docs/api/resources/oidc

https://google.github.io/google-auth-library-nodejs/interfaces/_auth_loginticket_.tokenpayload.html

Upvotes: 2

Related Questions