add name to claims

This commit is contained in:
bain 2024-07-05 15:09:50 +02:00
parent f2b028e9d0
commit fe88bf431c
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -150,6 +150,7 @@ pub fn create_id_token_claims(
"aud": client_id,
"exp": now + crate::TOKEN_EXPIRATION,
"iat": now,
"name": adjective.to_owned()+animal,
"given_name": animal,
"family_name": adjective,
"email": mangle("email")[..24].to_owned()+"@email.invalid",