Azure AD how I can get token after successfully logged in

AmalY
Tera Contributor

I need the retrieved token after successful login with Azure AD and store it in a table and use it for other APIs our current login by using SAML please if anyone have any idea how to get the token and refresh it when expired please explain how to do it in details..

3 REPLIES 3

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

I would think you log in to Azure AD using OAUTH? if so, it's in the  [oauth_credential] table.

But, since you don't give much detail, it's hard to know.

 

If helpful or correct, please state so!

Hi MattiasJonsson,

I really appreciate your comment, it has been mentioned SAML not OAuth. and the issue is I have APIs that needs that token directly after login but I don't see any Access Token within the response in able to use it with other APIs.

So, do I have to change all configuration from SAML to OAuth?

if YES, could you please explain how to apply it?

moreover, since it will be used within backend script is it possible to refresh it within server script?

if YES, please let me know how?

AmalY
Tera Contributor

it is SAML