<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y0000A5N3rJSQSOkta Classic EngineOkta Integration NetworkAnswered2020-12-18T02:10:52.000Z2020-12-11T07:01:21.000Z2020-12-18T02:10:52.000Z

PreethamS.65089 (Customer) asked a question.

How do I fetch the state value for accessing application post successful authentication through OpenID Connect Authorization Endpoint

HI , I need to connect to the applications enclosed with OKta and I did followed the below steps.

 

Step 1: Get the session Token with Primary authentication with public application through Post Request. ---- This is to connect to OKta account (Authenticate).

Step 2: Now, I need to access the application inside Okta (say Web App) , I did used the OpenID Connect Authorization Endpoint which needs Client ID (I got this) , Session ID (It got this in Step 1) and State (How do I get the State value )??

 

https://${yourOktaDomain}/oauth2/v1/authorize?client_id={clientId}&response_type=id_token&scope=openid&prompt=none&redirect_uri=https%3A%2F%2Fyour-app.example.com&state=Af0ifjslDkj&nonce=n-0S6_WzA2Mj&sessionToken=0HsohZYpJgMSHwmL9TQy7RRzuY

 

 


  • Hi @PreethamS.65089 (Customer)​ 

     

    The parameters "state" and "nonce" are unique values generated from your end which can be used to verify the request. After sending this values to Okta, Okta will redirect back to your callback with the location of the values as follows:

    • state: present on the callback endpoint, along with the authorization code or ID token in this case
    • nonce: present in the ID token requested

     

    If you are not verifying this values on your end after the user is redirected from the /authorize endpoint, the best solution would be to put static values, such as "abc".

     

    Dragos Gaftoneanu

    Developer Support Engineer

    Okta Global Customer Care

    Expand Post
This question is closed.
Loading
How do I fetch the state value for accessing application post successful authentication through OpenID Connect Authorization Endpoint