Skip to content

Commit

Permalink
Add Roles API (#30)
Browse files Browse the repository at this point in the history
To drive the UI.
  • Loading branch information
spjmurray authored Apr 5, 2024
1 parent 7447b7b commit 8865825
Show file tree
Hide file tree
Showing 9 changed files with 424 additions and 140 deletions.
4 changes: 2 additions & 2 deletions charts/identity/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn's IdP

type: application

version: v0.1.23
appVersion: v0.1.23
version: v0.1.24
appVersion: v0.1.24

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png
1 change: 0 additions & 1 deletion charts/identity/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ roles:
default:
isDefault: true
scopes:
roles: [read]
organizations: [read]
reader:
scopes:
Expand Down
31 changes: 31 additions & 0 deletions openapi/server.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,26 @@ paths:
$ref: '#/components/responses/unauthorizedResponse'
'500':
$ref: '#/components/responses/internalServerErrorResponse'
/api/v1/organizations/{organization}/roles:
description: |-
Allows management of roles that define access control permissions for
users that are linked to them via a group.
parameters:
- $ref: '#/components/parameters/organizationParameter'
get:
description: |-
Returns roles that can be used by the organization.
security:
- oauth2Authentication: []
responses:
'200':
$ref: '#/components/responses/rolesResponse'
'401':
$ref: '#/components/responses/unauthorizedResponse'
'403':
$ref: '#/components/responses/forbiddenResponse'
'500':
$ref: '#/components/responses/internalServerErrorResponse'
/api/v1/organizations/{organization}/oauth2/providers:
description: |-
Allows management of oauth2 providers. The identity service is typically
Expand Down Expand Up @@ -927,6 +947,17 @@ components:
scopes:
organizations:
- read
rolesResponse:
description: |-
A set of roles within the organization.
content:
application/json:
schema:
$ref: '#/components/schemas/roleList'
example:
- admin
- user
- reader
groupResponse:
description: |-
A group in the organization.
Expand Down
133 changes: 133 additions & 0 deletions pkg/generated/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions pkg/generated/router.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8865825

Please sign in to comment.