ServiceNow API Call with OKTA OIDC Authentication (O.Auth 2.0) can only work once.

nguyenkimdat
Tera Contributor

I'm using OKTA Authentication to call API from ServiceNow.
Refer to this: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0858462
Everything went fine, but the problem is the token_id can only be used once. After the first call, it returns:

nguyenkimdat_0-1676022901385.png

Is this what it should be? Can you explain this to me? Thanks!
Are there any other ways to configure this to work, to call ServiceNow API many times with one token_id? 

1 ACCEPTED SOLUTION

Hi @nguyenkimdat 

 

Have you tried to uncheck the "Enable JTI claim verification" checkbox on the OIDC Provider configuration? From my understanding this ist what lets you use a token only once.

View solution in original post

6 REPLIES 6

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @nguyenkimdat ,

Did you go through the below article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0778342

 

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

I had followed every steps and it worked fine, but one token can only be used once. So I dont know it's a feature or there 's any configuration I dont know

Hi @nguyenkimdat 

 

Have you tried to uncheck the "Enable JTI claim verification" checkbox on the OIDC Provider configuration? From my understanding this ist what lets you use a token only once.

Did you ever get this working?