auth-backend-module-aws-alb-provider: no longer lowercase username and email

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-10-16 13:30:12 +02:00
parent 605bdc01cf
commit 75168e31f9
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-auth-backend-module-aws-alb-provider': minor
'@backstage/plugin-auth-backend': minor
---
**BREAKING**: The AWS ALB `fullProfile` will no longer have the its username or email converted to lowercase. This is to ensure unique handling of the users. You may need to update and configure a custom sign-in resolver or profile transform as a result.
@@ -77,12 +77,12 @@ export const awsAlbAuthenticator = createProxyAuthenticator({
provider: 'unknown',
id: claims.sub,
displayName: claims.name,
username: claims.email.split('@')[0].toLowerCase(),
username: claims.email.split('@')[0],
name: {
familyName: claims.family_name,
givenName: claims.given_name,
},
emails: [{ value: claims.email.toLowerCase() }],
emails: [{ value: claims.email }],
photos: [{ value: claims.picture }],
};