ZAF App not refreshing Azure token | Community
Skip to main content

ZAF App not refreshing Azure token

  • February 2, 2022
  • 4 replies
  • 0 views

I have an app that connects to an Azure based app to read data. The app is successfully using the Zendesk authentication proxy, but after the token expires the app no longer works. From what I've read, the Zendesk documentation says that the proxy should handle the refreshing of the access token.

4 replies

Eric27
  • February 3, 2022
Hi Taylor, 

Would you be able to share with us your oAuth parameters in your manifest file. As well as the corresponding code snippets you're using to authenticate?

Thanks!

  • Author
  • February 3, 2022

Hi Eric,

Thank you for the reply. Below is a picture of my manifest file.
(Edit)
As for authentication, I don't do that explicitly in the code. I use the `Authentication: Bearer {{setting.token}}` placeholder in my requests to get the token provided by the proxy.


Eric27
  • February 4, 2022

Hey Taylor,

If I remember correctly, you need to include 'offline_access' in your scope for Azure. 

Hope this helps!


  • Author
  • February 6, 2022

Thank you Eric. That did the trick!

For anyone else looking for long term Azure tokens:
Prepending the scope with "openid offline_access" should do it.