Role URI Service - Ulbora/GoAuth2 GitHub Wiki
Add Role URI
Method: POST
URL: http://localhost:3000/rs/clientRoleUri/add
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Request Body Example:
{
"clientRoleId":24,
"clientAllowedUriId":167
}
Response:
{
"success": true
}
Get Role URIs for a Role (roles matched to URI)
Method: GET
URL: http://localhost:3000/rs/clientRoleUri/list/128
128 = clientRoleId
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Response:
[
{
"clientRoleId": 128,
"clientAllowedUriId": 1474
},
{
"clientRoleId": 128,
"clientAllowedUriId": 1475
},
{
"clientRoleId": 128,
"clientAllowedUriId": 1477
},
{
"clientRoleId": 128,
"clientAllowedUriId": 1478
}
]
Delete Role URI
Method: DELETE
URL: http://localhost:3000/rs/clientRoleUri/delete/128/1478
128 = clientRoleId
1478 = clientAllowedUriId
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Response:
{
"success": true
}