Skip to content

Redirect URI services

Ken Williamson edited this page Jan 19, 2020 · 2 revisions

Add Redirect URI

Method: POST

URL: http://localhost:3000/rs/clientRedirectUri/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:

{
   "uri":"www.ulboralabs.com",
   "clientId":616   
}

Response:

{
   "success": true,
   "id": 34
}

Get Redirect URIs for a Client

Method: GET

URL: http://localhost:3000/rs/clientRedirectUri/list/677

677 = clientId

Request headers Example:

Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)

Response:

[
    {
        "id": 829,
        "uri": "http://localhost:8091/tokenHandler",
        "clientId": 677
    },
    {
        "id": 830,
        "uri": "http://localhost:8090/admin/token",
        "clientId": 677
    },
    {
        "id": 831,
        "uri": "http://localhost:8092/tokenImplicitHandler",
        "clientId": 677
    },
    {
        "id": 833,
        "uri": "http://www.google.com",
        "clientId": 677
    }
]

Delete Redirect URI

Method: DELETE

URL: http://localhost:3000/rs/clientRedirectUri/delete/510

510 = id

Request headers Example:

Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)

Response:

{
    "success": true
}