Custom connector in PowerAutomate for OKTA API

Hello,
I’m new to OKTA, and I’m struggling a bit as I don’t know how to proceed. I’m trying to create an OAuth connection between Power Automate and OKTA. I previously tested with Postman, and it worked fine.
Here’s my configuration of my custom connector in Power Automate:

When testing the connection, it works fine without errors(i am in the page where i put my authentification and MFA) , but Power Automate doesn’t maintain the API connection. (The main difference from Postman is that Power Automate doesn’t have a state parameter, Is that my error ? any idea how to proceed that ?)

Thanks,

So its completely unable to retrieve a token from Okta at all?

You mentioned “maintain the API connection,” does that mean that its able to make API calls to Okta for a short period of time, or does it not even get that far? Does it indicate that any errors occurred while making requests to Okta?

Hello,
When I tried to connect to an authentication page and clicked again, it saved my information in cookies. The page displayed “Authorization completed! and it should be closed automatically.”

After that, I don’t see any added connection and I cannot select any previous connection.
I cannot make GET or POST requests because I am unable to choose a connection.

hmm, so Power Automate thinks the authorization was successful? Do they have any logs (or a support team) on their side that can help isolate whats causing the connection to fail to create?

I have the same problem.
Custom connector in Power Platform.
Auth Type Oauth 2.0
All details provided but getting error 400 “Invalid Request”.
Clients with “application_type” of ‘service’ are not allowed to access the ‘authorize’ endpoint.

Can you try creating a Web application within Okta instead? I’m guessing that this integration will want to use Authorization Code flow, and so it would need to be an application type that supports user based logins (i.e. SPA, Native, or Web).

Found the issue, it was a silly one.
Guys who created app registration created it as a service type.
Change it to Web and it worked. Thank you!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.