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

[CLOUDTRUST-2438] Remove parameter groupIDs from GET /kyc/users #204

Merged
merged 1 commit into from
Mar 27, 2020

Conversation

fperot74
Copy link
Contributor

No description provided.

@@ -68,17 +68,15 @@ func (c *authorizationComponentMW) GetActions(ctx context.Context) ([]apikyc.Act
return c.next.GetActions(ctx)
}

func (c *authorizationComponentMW) GetUserByUsername(ctx context.Context, username string, groupIDs []string) (apikyc.UserRepresentation, error) {
func (c *authorizationComponentMW) GetUserByUsername(ctx context.Context, username string) (apikyc.UserRepresentation, error) {
var action = KYCGetUserByUsername.String()
var targetRealm = c.realmName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are using realmName of the MW coming from configuration. I think it should depend of the current user and thus using the value present in context. Am I missing something ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right... fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue seems to also applies to the others methods

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-fixed

@coveralls
Copy link

coveralls commented Mar 20, 2020

Pull Request Test Coverage Report for Build 1985

  • 29 of 29 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 92.202%

Totals Coverage Status
Change from base Build 1984: 0.01%
Covered Lines: 5486
Relevant Lines: 5950

💛 - Coveralls

@harture harture self-requested a review March 23, 2020 09:13
@fperot74 fperot74 force-pushed the ct-2438-kycusers branch 2 times, most recently from 5c90ea3 to ce500c0 Compare March 23, 2020 16:52
@fperot74 fperot74 merged commit 7555aee into cloudtrust:master Mar 27, 2020
@fperot74 fperot74 deleted the ct-2438-kycusers branch March 27, 2020 14:54
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.

None yet

4 participants