web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / External login: OpenID...
Power Pages
Answered

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

(0) ShareShare
ReportReport
Posted on by 2

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!

Categories:
I have the same question (0)
  • Verified answer
    rulesrchanged1 Profile Picture
    on at

    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

  • v-monli-msft Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 51 Super User 2025 Season 2

#2
Jerald Felix Profile Picture

Jerald Felix 25

#2
Lucas001 Profile Picture

Lucas001 25 Super User 2025 Season 2

Last 30 days Overall leaderboard