Skip to content
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

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

dev-hitesh-gupta
Copy link
Contributor

@dev-hitesh-gupta dev-hitesh-gupta commented Aug 12, 2020

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)

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

  • Test A
  • Test B

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

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,
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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
@sonarcloud
Copy link

sonarcloud bot commented Aug 12, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@samarpan-b samarpan-b merged commit 1ac5b83 into master Aug 12, 2020
@samarpan-b samarpan-b deleted the authentication-service/change-in-user-model branch August 12, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants