-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(authentication-service): change in user model #64
fix(authentication-service): change in user model #64
Conversation
authClientIds now a string type in user model BREAKING CHANGE: it can impact user flow SFO-0
@@ -552,10 +550,10 @@ export class LoginController { | |||
}, | |||
}, | |||
}) | |||
req: ResetPassword, | |||
req: ResetPassword, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u run prettier:fix to fix indent issues here
@@ -681,7 +679,7 @@ export class LoginController { | |||
); | |||
} | |||
|
|||
if (user.authClientIds.indexOf(authClient.id || 0) < 0) { | |||
if (user.authClientIds.indexOf(String(authClient.id || 0)) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split this up on braces first then on comma then run this check over that array
@@ -61,7 +61,7 @@ export class ResourceOwnerVerifyProvider | |||
clientId, | |||
}, | |||
}); | |||
if (!client || user.authClientIds.indexOf(client.id || 0) < 0) { | |||
if (!client || user.authClientIds.indexOf(String(client.id || 0)) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as previous comment
BREAKING CHANGE: it will affect check of the auth client SFO-0
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
authClientIds now a string type in user model
BREAKING CHANGE:
User login flow is impacted if auth client id was getting used.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: