How to get the oauth2 params in custom_configs page?

Hi,

I am integrating an app with OAuth2 flow and I am using oauth_config.json in Freshdesk. I want to do the test coverage process in my app. I am able to get the iparams values in the custom_configs page in http://localhost:10001/custom_configs. But I could not get the client_id and client_secrets for the Oauth_config file. So, I am not able to do test coverage.

Is there any way to get the client_id and client_secret from the custom_config page in Freshdesk?

Hi Dinesh,

Oauth iparams fields of config/oauth_config.json will be automatically requested in http://localhost:10001/custom_configs for the first time.

Please refer Sample Configuration with OAuth Installation Parameters section of OAuth.

Once the handshake is successful access_token will be saved under .fdk/ of the app directory. Clearing this directory will again prompt for oauth iparams on the page http://localhost:10001/custom_configs.

Hope this helps, If the issue still persists kindly share the sanitized app zip to debug better.

2 Likes

What is “token_url”: “https://app.asana.com/-/oauth_token” in the oauth_config , I mean where will I get this Url, is it the url to generate accesstoken. Not sure what’s this. Can anyone help