Third Party Oauth integration | Community
Skip to main content

Third Party Oauth integration

  • June 16, 2023
  • 4 replies
  • 0 views

Support21

I am getting this type of large token n my backend:
'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiaXNzIjoiaHR0cHM6Ly9kZXYtbm42NjJxcW54bTNoMXlobS51cy5hdXRoMC5jb20vIn0..ieBEjowTq_2tdaJj.PcWQZ2Qo_NP26lpJ0EbhDrraS11SV-qMz_Hiz8CerCWQoW4Dv2hkZRa094YtL3Wxo3OBfen4eVwsQlBxo8xkyaqz_jgWffmFxAzONuwWAV-1ZSe6Gzvm4YgCXCWySpirPXxVzpRhpSkcONe3BU_EAiJB6rHwBrMPO9r3B3Vsgp-pC45C5Q6PT20uYOeRCTY9R84fiC_UWloz0SK6TrK5a3hS4qiPA-wp4yV4mZ3G9m0mMnTPtiMYvzY9AsP4XZHsMkQgqlN4tc5msBwLIuyRF6hP3ABa9ZJfD-B9gL4YodNC.Rkp5nFI57wjKsP1MQWIj_A'


I am using third party AuthO integration by following this doc I am not sure what is wrong with my proccess:

https://developer.zendesk.com/documentation/apps/app-developer-guide/making-api-requests-from-a-zendesk-app/#managing-third-party-oauth-access-tokens

 

4 replies

Greg29
  • June 16, 2023

Hi there! This looks like a JWT token and algorithm more than an OAuth token. Can you share the code snippet where you are generating this?


Support21
  • Author
  • June 19, 2023

I am using AuthO for the third party authorzation. https://auth0.com/

This is my manifest.json file and I am using client id and client secret of AuthO. and also using both the url authorize url and access token url from there . This generates a token which is large I mentioned earlier. My concern is that how can I authorize url from the backend, like how to decode this.

And using this to pass the token to backend:

const options = {
        url:  url,
        type: "GET",
        headers: {Authorization: "Bearer {{setting.token}}"},
        secure: true,
       
    }
    client.request(options).then((data) => {
      console.log(data)
}

Thanks Greg!


Support21
  • Author
  • June 23, 2023

I am currently utilizing Auth0 (https://auth0.com/) for integrating third-party OAuth. However, I am encountering difficulties in refreshing the token for my secure settings. Could someone assist me in finding an alternative third-party OAuth integration?

Thanks


Support21
  • Author
  • June 23, 2023

Like  want to implement refresh token concept .