OAuth Auth Flow 405 Redirect Error

4 댓글

  • Joseph Takahata

    Bump. I was told coming here was a way to better get in contact with Zendesk's Engineering team by support.

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Joseph, 

    Would you be able to provide the relevant code snippets (omitting any identifying info)? This will help us to be able to debug the issue much more effectively. 

    Thanks!  
    0
  • Joseph Takahata

    Sure.

    This is a section of the manifest.json:

    "oauth": {
      "client_id": "---",
      "client_secret": "---",
      "authorize_uri": "https://someurl.com/o/authorize",
      "access_token_uri": "https://someurl.com/o/token",
      "scope": "read write"
    },
    "parameters":[
      {
        "name":"token",
        "type":"oauth"
      }
    ],

    This is the call that is made to our services:

    exportconstzafApi = {
      getOrder: (id: number): Promise<Order> => {
        constsettings = {
          url:`${baseURL}order/${id}`,
          headers: {
            "Authorization":"Bearer {{setting.token}}",
          },
          secure:true,
          type:"GET",
          dataType:"json",
          contentType:"application/json",
        }
        return zafClient.request(settings)
      },
    }
     
    The ZAFClient is imported within the index.html file via a:
     
     
    Please let me know if that helps or if there is anything else I can provide. Thank you for your help.
    0
  • Joseph Takahata

    Bump.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공