Auth0 JWT Payload Support
-
Auth0’s JWT payload parameter key that bears the user’s ID contains prefixes (I’m using the ‘Login by WP User ID’ setting), is it possible to add hooks to edit/extract UserID from that value before processing the login?
Here is the sample payload from Auth0, the parameter key I’m referring to is the ‘sub’:
{ "nickname": "nickname", "name": "Name", "picture": "https://s.gravatar.com/avatar/avatar.png", "updated_at": "2021-01-12T05:26:39.392Z", "iss": "https://example.eu.auth0.com/", "sub": "auth0|prefix|15", "aud": "nkIPru0iyN2xgCEnQF9GZWdsdTL3AYl5AFg", "iat": 1610429200, "exp": 1611034000 }
Thanks in advance!
- The topic ‘Auth0 JWT Payload Support’ is closed to new replies.