<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
0D54z0000AHX4GqCQLOkta Classic EngineAuthenticationAnswered2024-11-05T16:39:16.000Z2024-11-04T08:08:26.000Z2024-11-05T16:39:16.000Z
Session not extending beyond 1 hour 40 mins. I am extending the session by silent auth using iframe and updating access token in user identity claims using refresh token.

We have integrated Okta using Microsoft.Owin.Security.OpenIdConnect into our asp.net application. My application has multiple client id and multiple domain which we are authorizing using custom authorization server. We are trying to extend user session using a popup which we are opening after 24mins of inactivity on a button click we are doing silent authorization by calling "/v1/authorize" API in iframe and on successful authorization in the callback we are exchanging the code with access token and storing it in cookies. Also post that we are updating the access token in user identity claims using the refresh token in middleware by calling "/v1/token" and then doing a re-SignIn using "context.Authentication.SignIn" method. By doing this we are able to extend the session from 30 mins(okta idle session timeout) to 1 hour 40 mins approx. but after that the session is getting expired.

 

Can someone please help us on this?


  • Hi @User17307068221906827329 (Customer)​ , Thank you for reaching out to the Okta Community! 

     

    This question is more appropriate for our dedicated Okta Developer Forum.

    My advice would be to reach out via devforum.okta.com to take advantage of their expertise.

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work). 

    If you have a paid account with us, you can leverage that to open a case and work with the Developer Support team on this.  

     

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

     

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
This question is closed.
Loading
Session not extending beyond 1 hour 40 mins. I am extending the session by silent auth using iframe and updating access token in user identity claims using refresh token.