Skip to main content
raulg0001
Inspiring
July 26, 2022
Solved

token oauth expired

  • July 26, 2022
  • 2 replies
  • 0 views

Good morning colleagues,

I need to expose a web api with oauth 2 authentication , I manage to do this but the token expires from the external system every so often and I don't know how to make it regenerate automatically without having to do it manually . can anyone help me with this ?

Best answer by stefanhelzle0001

Just to make sure, you created a Web API object in Appian and set up oAuth 2 authentication following the the documentation below?

https://docs.appian.com/suite/help/22.2/Web_API_Authentication.html#oauth-2.0-client-credentials-grant

Then, another system calls the Appian API and the token expires? Is that correct?

If yes, oAuth tokens always have a pretty short expiration time and the other system needs to get a new one calling the endpoint /suite/authorization/oauth/token to get a new one.

docs.appian.com/.../Appian_Administration_Console.html

2 replies

stefanhelzle0001
Brainy
July 26, 2022

Just to make sure, you created a Web API object in Appian and set up oAuth 2 authentication following the the documentation below?

https://docs.appian.com/suite/help/22.2/Web_API_Authentication.html#oauth-2.0-client-credentials-grant

Then, another system calls the Appian API and the token expires? Is that correct?

If yes, oAuth tokens always have a pretty short expiration time and the other system needs to get a new one calling the endpoint /suite/authorization/oauth/token to get a new one.

docs.appian.com/.../Appian_Administration_Console.html

raulg0001
raulg0001Author
Inspiring
July 29, 2022

thaks , [emoticon:c4563cd7d5574777a71c318021cbbcc8]