How to refresh Access Token automatically from Refresh Token.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 04:18 AM
Hello all, We have one requirement to set up ServiceNow App Launcher to be used in conjunction with Okta to enable users to access external apps for the employee center.
Configuration completed to date :
1. Installed Okta spoke plugin
2. Followed ServiceNow setup documentation for Okta Spoke
3. Followed ServiceNow setup documentation for Okta application and configuration
4. Everything is working, but the Access token gets expires after 30 minutes, we have to get the token manually each time. We want to automate this process.
5. We have tried creating a scheduled job to extend the time and it was working but then apps on the portal were not getting synced.
6. Also, On the portal when the token is not expired the "Web Application" which is showing the okta apps is taking longer to load around 3 minutes. When the token is expired it loads quickly.
Can someone help me to understand the cause and resolution for this?
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2022 05:14 AM
Thanks Pragati.
I opened a case with HI Support and looks like I was missing 2 scopes; okta.eventHooks.manage, okta.eventHooks.read. After I granted these scopes within the OKTA application, then the access token was refreshing automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 11:00 AM
Thanks for this,because this was also my problem and solution.
I figured out that scopes are missing in our instace a our token is only 60min,than we have to manually request it.
after I contacted okta team and asked them to assign mentioned scopes, run new test,those were added in our instance automatically and from now token is refreshed + 60min every time we run process.
/Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 11:08 AM
I'm running into the exact same issue. Been through steps 1-4 in your original post. We created a HI ticket and were only given documentation and not much else of practical help.
Currently trying to see how to create a scheduled job to automatically refresh the tokens. How did you make the scheduled job to have it refresh correctly? Any guidance would be greatly appreciated!