Set Oauth config Iparams

I’m trying to configure my app to use Oauth variable URLs and client data. I haven’t found where I can set the parameters. I assumed it would be during installation but they don’t show on http://localhost:10001/custom_configs. If I add the same config variables to iparams.json and set the fields on localhost/custom_configs, it still does not work for oauth.

I’m missing something here but I’m not sure where it is. My oauth config is at the bottom of the post.

Thanks

    `{
"client_id": "<%= oauth_iparams.client_id %>",
"client_secret": "<%= oauth_iparams.client_secret %>",
"authorize_url": "https://<%= oauth_iparams.domain %>/oauth/authorize",
"token_url": "https://<%= oauth_iparams.domain %>/oauth/token",
"token_type": "agent",
"oauth_iparams": {
	"domain": {
		"display_name": "Domain Name",
		"description": "Please enter your domain name without http(s):// or any trailing slashes",
		"type": "text",
		"required": true
	},
	"client_id": {
		"display_name": "Client ID",
		"description": "Please enter your client ID",
		"type": "text",
		"required": true
	},
	"client_secret": {
		"display_name": "Client Secret",
		"description": "Please enter your client secret",
		"type": "text",
		"required": true
	}
}

}
`

Hi @oceanapplications,
Hope you are doing well and Welcome to the community! :wave: :tada:

As oauth_iparams enables us to retrieve the values from installer before OAuth handshake occurs,
Can you try with "token_type": "account" and we would see them show up at http://localhost:10001/custom_configs

Ok using token_type: account the settings do appear. I don’t necessarily want to use “account”. I’d prefer to use “agent” because on the application end, the changes are logged to the agent that made them. If I use “account”, all the changes are logged to the user who installed the app in Freshdesk.

Thanks

Thanks for this bringing up @oceanapplications, Currently we do not support oauth_iparams for agent level oauth installations and I can confirm that it’s in our roadmap.

Please watch out for announcements to see when it’s out.

2 Likes

Do you know the timeframe that could be available?

Thanks

Hi @oceanapplications,

We don’t have a timeline as it is yet to be picked up for development.