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

@nguyenkimdat Did you get this fixed?

You can try the solution Christoph Hick mentioned above. It worked for me.