OAuth App Receiving 401 Error

5 Comentarios

  • Samer Kokeh

    Hi,
    I have the same problem, did you find a solution ?
    Thank you,

    Samer

    0
  • Taylor Artunian

    I think what ended up making it work for me was setting the OAuth scope to:

    openid offline_access https://[your_subdomain].crm.dynamics.com/user_impersonation

    0
  • Samer Kokeh

    Thank you for information Taylor, just I want to make sure if you put the call back url on azure active directory as  https://zis.zendesk.com/api/services/zis/connections/oauth/callback

    because i always receive 422 error 
    "Proxy error: {:code=>\"UnprocessableEntity\", :status=>\"422\", :title=>\"Unprocessable Entity\", :message=>\"Failed to get installation and oauth information for app.\"}"

    I think i did everything well, it's really strange.

    0
  • Taylor Artunian

    That is the same callback url that I used in Azure. I also set it as Web platform (not single-page) and enabled Access tokens (not ID tokens).

    I remember getting the 422 error, but I just can't remember what caused it.

    0
  • Samer Kokeh

    Thank you Taylor, I've solved the problem.
    Mainly to test your OAuth settings, you have to install the app. because OAuth settings can't be test during the design. 
    BTW, I used following parameters, it didn't work with me with type: oauth.

    "parameters": [
            {
                "name": "token",
                "type": "text",
                "secure": true,
                "required": true
            }
    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk