Hi all,
We have a connected system with OAuth 2.0 Client Credential Grant. From the connected system we can Authorize with no error. Now, the token we get is valid for 24 hours. The problem is, after 24 hours, the integration calls fail with Authorization error. And when I go to Connected System and click on Authorize and run the integration again, it works perfectly. Does anyone know why this may be happening? I checked and the security of the integration and connected system is set properly.
Thanks!
Discussion posts and replies are publicly visible
Its Sharepoint. Yes. I am not using the existing connected systems as the APIs available with the existing Connected System is bit different. I can certainly search for the Sharepoint Connected System. eventually I want to try integration with outlook Calendar as well. All of them follow Microsoft Auth Flow.
Is there any solution for this while using client credentials grant after few hours it looks to me it says request rejected with 200 success message , after authorise it works well and then if it is not used for some time similar things repeat , if it returns 200 will it get new token if not what is the best way to authorise it again automatically and fix this
You'll probably need a custom CS for this. Standard HTTPS connected system doesn't support refresh tokens AFAIK.
Thanks Mathieu , it would be if you could explain more abt the solution what you are refering here how do we create such in Appian , I thought it is generally usage for CS to use the client credentials grant with regular refresh , is there any existing bug in the system or something else , whether this error is invalid code generated or Appian not handling this responds properly and generate new refresh token , pls advise .