Manage token expiration with Sign-in Widget Skip to main content
https://support.okta.com/help/answers?id=9062a000000xamnqak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Mathias GorenflotMathias Gorenflot 

Manage token expiration with Sign-in Widget

Hello, 

I configured via Access Policies the Access token lifetime has a day, but when I connect via the widget signin, the token id and the access token stay at 1 hour. 
The token preview does give me a token with the expected expiration date, and a one-hour id_token. 

I don't understand why the token access returned by the API isn't a day old. You have to use the refresh token widget method? 

Thank you 
Best Answer chosen by Dylann Fezeu (Customer First Programs)
Daniel CapriceruDaniel Capriceru (Okta, Inc.)
Hi Mathias


Thank you for posting your inquiry to Okta Support Community Portal.

  The Okta Sign-in Widget uses Okta as an authorization server and it's Access Policies can't be modified. You will need to use a custom authorization server for those changes to reflect on your Access Policies.

https://developer.okta.com/use_cases/authentication/

https://developer.okta.com/code/javascript/okta_sign-in_widget


If you need further assistance, please feel free to open a case with Okta Support or send an email to developers@okta.com.



Thank you,
Daniel

All Answers

Daniel CapriceruDaniel Capriceru (Okta, Inc.)
Hi Mathias


Thank you for posting your inquiry to Okta Support Community Portal.

  The Okta Sign-in Widget uses Okta as an authorization server and it's Access Policies can't be modified. You will need to use a custom authorization server for those changes to reflect on your Access Policies.

https://developer.okta.com/use_cases/authentication/

https://developer.okta.com/code/javascript/okta_sign-in_widget


If you need further assistance, please feel free to open a case with Okta Support or send an email to developers@okta.com.



Thank you,
Daniel
This was selected as the best answer
Dylann FezeuDylann Fezeu (Customer First Programs)
Hello Mathias,

Thanks for posting your inquiry in Okta Community Portal.

If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

Thank you,

Dylann Fezeu
Okta Help Center Team