cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FredrikBjorn
Level: Power Up

External login: OpenID Connect - authorization code flow - problems.

Hello!

I tried setting up an external login option for a dynamics portal, using OIDC. 


The implicit flow works fine by setting up these site settings:

(Authentication/OpenIdConnect/[provider]/) Authority, ClientID and RedirectUri.

 

However the OIDC provider in question only supports the authorization code flow, which I've not been able to get working.

Login simply fails with the above settings.

So I set the ResponseType to 'code' which now halfway works. It redirects to the OIDC provider where the user can log in and grant consent. Upon redirecting back to the specified redirect URI( portal.domain.com/signin-provider) you get a 404.

(I've also specified the ClientSecret and the discovery(MetadataAddress setting) )


Following the guide/documentation on the subject I've tried registering an app in Azure AD without any success. I've also tried adding the redirect URI to the existing Microsoft CRM portals app, also without success.

I'm assuming this is because we're now only getting an access code in return, and not an ID token?
Is the authorization code flow not supported or am I doing it wrong?
I assumed that, as long as the ResponseType was set to code and the metadata/secret provided, back channel communications would trigger on its own. Do I need custom code for this to work?

Any suggestions are welcome, 
thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps Staff dileeps
Power Apps Staff

Re: External login: OpenID Connect - authorization code flow - problems.

We actually don't support Code Authorization flow today. It is in roadmap to do in future but today only implicit grant/hybrid flow will work

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: External login: OpenID Connect - authorization code flow - problems.

Hi @FredrikBjorn ,

 

This is PowerApps community, and it seems that it is a flow issue. If so, would you please post it in below Flow forum:

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community/ct-p/FlowCommunity

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Power Apps Staff dileeps
Power Apps Staff

Re: External login: OpenID Connect - authorization code flow - problems.

We actually don't support Code Authorization flow today. It is in roadmap to do in future but today only implicit grant/hybrid flow will work

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (4,427)