I trying get oauth access token for add on. I am getting No oauth client details found for https://{domain}.net and oauthClientId {id} error. Can anyone help me on this?
I have followed the instructions provided by this link User impersonation for Connect apps. I have installed the add-on then got the add-on key and oauthClientId(client_key). I am trying to get access token from the api (https://auth.atlassian.io/oauth2/token). I didn’t get the response. Could you please guide me for this?. Is there any specific configuration needs to be done?
i just happened upon this thread while doing some of my own development and ran into the same issue. It turned out that i was using the clientKey param from the installation lifecycle call instead of the oauthClientId param. Once I changed that it worked fine.
Give it a shot and let me know if it fixes your issue
nothing needs to be set up before testing, but clientKey is the wrong param. you need to be using oauthClientId that comes in in the installed lifecyle hook
Hello @arvindk I have been trying to reproduce your issue and the only way I have been able to reproduce is to put in the incorrect clientid. I hope that narrows the scope of your troubleshooting.
I have the same issue however I am not receiving oauthClientId in the request body or query string params. These are the values I am receiving on installed event:
BODY: key, clientKey, publicKey, sharedSecret, serverVersion, pluginsVersion, baseUrl, productType, description, eventType
QUERY: user_key, user_account_id
Not sure if this is still an issue, but after reading what @scklein said, I uninstalled and reinstalled my app checking the payload that came from the installed lifecycle. Low and behold there was an oauthClientId. After using that instead of the clientKey, impersonation worked. I am not sure if it was there before, or if it was only present after I added the ACT_AS_USER scope to my atlassian-connect.json. I don’t recall it being there before, but I can’t say one way or another.