Implement endpoint authorization and CRUD endpoint for roles #39
Labels
No labels
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
You do not have permission to read 1 dependency
Reference: clevermicro/user-management#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This ticket should add a
headers
field (type:Map<String, List<String>
) to the incoming request message. Then implement the following endpoints forrole-service-v1
:createClientRole(clientRole: ClientRole)
deleteClientRole(client: String, roleName: String)
listClientRole(client: String, first: Int, max: Int): List<ClientRole>
getClientRole(client: String, roleName: String): ClientRole
updateClientRole(client: String, roleName: String, role: ClientRole)
The ClientRole fields:
id: ClientRole.Id
: the id of this roleThe
ClientRole.Id
fields:name: String
: name of the roleclient: String
: the client name of the client roleRight now the get and update endpoints are useless, but we still need to implement the code to pull data from keycloak and construct the response. In the future we may extend the client role object with attributes, that's when the get and update will be useful.
The role service requires authentication, all requests must contain a
Authorization
, the value will beBearer your_client_token
(just like any http request). You can have multiple values, but at least one of them should match the client you're given. For example, if you want to add a role to clientcleverbrag
, then you must provide one token that is issued to the cleverbrag client service account.This ticket should focus on the implementation of the endpoint authorization, along with some simple CRUD role management. The rest of the role management endpoints will be implemented in separate tickets.
This ticket includes unit tests.