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-1262] Get groups #72

Merged
merged 9 commits into from Jun 4, 2019
Merged

[CLOUDTRUST-1262] Get groups #72

merged 9 commits into from Jun 4, 2019

Conversation

bsoniam
Copy link
Contributor

@bsoniam bsoniam commented May 24, 2019

Added get groups endpoint
Added authorization for GetRoles: anyone can query and get the roles of his realm

@coveralls
Copy link

coveralls commented May 24, 2019

Pull Request Test Coverage Report for Build 712

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

Totals Coverage Status
Change from base Build 702: 0.09%
Covered Lines: 2151
Relevant Lines: 2295

💛 - Coveralls

@bsoniam bsoniam requested review from fperot74 and harture and removed request for fperot74 May 24, 2019 15:10
@@ -594,6 +597,9 @@ func main() {
managementSubroute.Path("/realms/{realm}/clients/{clientID}/roles").Methods("GET").Handler(getClientRolesHandler)
managementSubroute.Path("/realms/{realm}/clients/{clientID}/roles").Methods("POST").Handler(createClientRolesHandler)

//groups
managementSubroute.Path("/realms/{realm:[a-zA-Z0-9_-]+}/groups").Methods("GET").Handler(getGroupsHandler)
Copy link
Contributor

Choose a reason for hiding this comment

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

the regexp is not needed anymore here. We manage it in http.go

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

@@ -119,6 +129,16 @@
"master": {
"integrator_agent": {}
},
"GetGroups": {
"master": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think DEP should also be added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

}
},
"GetRoles": {
"master": {
Copy link
Contributor

Choose a reason for hiding this comment

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

DEP may be useful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

@@ -245,6 +265,16 @@
"*": {}
}
},
"GetGroups": {
"master": {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be DEP instead of master

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

}
},
"GetRoles": {
"master": {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be DEP instead of master

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

@fperot74 fperot74 changed the title Get groups [CLOUDTRUST-1262] Get groups Jun 4, 2019
@harture harture self-requested a review June 4, 2019 15:07
@harture harture merged commit d009093 into master Jun 4, 2019
@harture harture deleted the get-groups branch October 28, 2019 16:26
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