Add field to the Cognito access token

0

Is it possible to modify the JWT access token so that it includes the username and/or a custom D as well as the sub? The user pool is configured with an optional custom ID attribute. We use Amplify to log in.

2 Antworten
1
Akzeptierte Antwort

The only modification possible now are user groups.

AWS
beantwortet vor einem Jahr
0

Since Dec 18, 2023, Amazon Cognito user pools support the ability to enrich access tokens with custom attributes in the form of OAuth 2.0 scopes and claims.

profile picture
EXPERTE
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen