Recent searches


No recent searches

ZAF App not refreshing Azure token

Answered


Posted Feb 02, 2022

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.


0

4

4 comments

image avatar

Eric Nelson

Zendesk Developer Advocacy

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!

0


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.

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Taylor,

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

Hope this helps!

1


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.

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post