Issue when getting refresh token #3738
laurodelacerda
started this conversation in
General
Replies: 4 comments
-
Which API are you trying to connect to? Not all OAuth 2.0 have the same methods. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@troystaylor {
"properties": {
"connectionParameters": {
"token": {
"type": "oauthSetting",
"oAuthSettings": {
"identityProvider": "oauth2",
"clientId": "<<client_id>>",
"scopes": [
"ppdev"
],
"redirectMode": "GlobalPerConnector",
"redirectUrl": "https://global.consent.azure-apim.net/redirect/<<myconnector>>",
"properties": {
"IsFirstParty": "False",
"IsOnbehalfofLoginSupported": false
},
"customParameters": {
"AuthorizationUrl": {
"value": "https://<<okta_auth_server>>/authorize"
},
"TokenUrl": {
"value": "https://<<okta_auth_server>>/token"
},
"RefreshUrl": {
"value": "<<okta_auth_server>>/token"
}
}
},
"uiDefinition": {
"displayName": "OAuth Connection",
"description": "OAuth Connection",
"constraints": {
"required": "true",
"hidden": "false"
}
}
}
},
"iconBrandColor": "#FFFFFF",
"capabilities": []
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I’ve done Okta before. Are you using client_credentials or code flow? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm using client_credentials flow |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm having issues with the custom connector connection.
I have set the refresh URL (same as the token URL) but after 1 hour I'm not able to authenticate due to this error:
"Failed to refresh access token for service: oauth2."
Can I set up any configuration on apiProperties.json to automatically get the refresh token?
Any help would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions