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

Announcements

News and Announcements icon
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)
  • v-monli-msft Profile Picture
    Microsoft Employee 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

  • Verified answer
    rulesrchanged1 Profile Picture
    Microsoft Employee 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 17 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 12

#2
CN-06091549-0 Profile Picture

CN-06091549-0 12

Last 30 days Overall leaderboard