OAuthCode for Application Server RESTFul APIs

We have a requirement to expose One Identity REST APIs to external application to read/write user data. After going through REST API document, i came to know about default authentication module which is DialogUser, but we prefer to user OAuth.

I have managed to enable and install RSTS service on windows server but somehow i'm getting "invalid request" in the authorization code text field after successful authentication.



Would appreciate any help on this?

  • I was able to get authorization code but when I try to authenticate /AppServer/ using this code it returns generic error:


    AppServer authentication URL: https://<hostname>/AppServer/auth/apphost

    HTTP Method                               : POST



        "AuthString": "Module=OAuthRoleBased;Code=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dC;AppUrl=https://<hostname>/AppServer/;ClientId=<client_id>;RedirectUri=urn:InstalledApplication"


    Headers:  Authorization: Basic dmFtZXJzXG1ndX==






        "responseStatus": {

            "message": "An error occurred."


        "errorString": "An error occurred.",

        "exceptions": [


                "number": 2072000,

                "message": "An error occurred."




    However, AppServer logs points to invalid auth code 

    Login failed (Module: OAuth 2.0 / OpenID Connect (role based), Properties: , Identity: -, Client Machine: 10.x.x.x, Errors: [QER.OAuthAuthentifier.OAuth2Exception] invalid_request. Invalid auth code)

    Would appreciate any help on this?

Reply Children