Manage Token expiry date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 01:59 AM
Hi,
I have been working on the integration for external application with snow and for authentication using Oauth2 via Azure. In snow the azure application is registered, requestor profile is setup accordingly ,oauth_2_0_credentials is setup for token s to be managed. Through my code(script include) I'm able to generate token via schedule job and that is valid for an hour. Within that hour my code checks if the expiry time has been reached then it requests for a token and if not it retrieves the access token . I have observed that the same token profile created 4days ago is having the expiry time extended whenever a token is requested and the token is different what I found upon checking . Is this normal behaviour in snow ? Will it not generated a new token profile from scratch with created as the date and time when a new token is requested everytime? If yes, can we achieve that and how ? will revokeToken() be helpful here ?