Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Microsoft LogIn Unable to authenticate with external account provider.

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm configuring a Microsoft APP to do the authentification process with Microsoft accounts for my Power Portal.

I don't allow to register new users, i only want to let in the customers that have email or microsoft account in my CRM.

 

I already follow the Microsoft documentation:

1. I've created the microsoft app, and the secret id.

2. I've chained the two platforms throught redirection URL, Client id and Secret id.

3. I set permisions like that:

RubnP_0-1655386660993.png

I have a google authentification option too and it's working.

But when i try to log in throught my Microsoft option: 

1.

RubnP_1-1655386767390.png

2.

RubnP_2-1655386789978.png

I can Log in, but when my first page after that:

3.

RubnP_3-1655386853266.png

"

Unable to authenticate with external account provider.

"

Anyone can help me?

 

Thank You!

 

pd: I have the option for external Log in.

RubnP_4-1655386982398.png

 

 

 

 

 

Categories:
  • Jcook Profile Picture
    7,779 Most Valuable Professional on at
    Re: Microsoft LogIn Unable to authenticate with external account provider.

    @Anonymous @Steve0 ,

     

    Docs are wrong, you dont copy the ID you copy the Secret value.

     

    Create a new secret and copy the value (the one that is hidden after you leave leave the page)

    Jcook_0-1695420215964.png

     

  • Steve0 Profile Picture
    Microsoft Employee on at
    Re: Microsoft LogIn Unable to authenticate with external account provider.

    I am getting the same thing, did you solve this?

  • Christian Leverenz Profile Picture
    1,214 on at
    Re: Microsoft LogIn Unable to authenticate with external account provider.

    @Anonymous ,

    basically, users in portals/power pages are contacts. So, for each "login" there has to be a contact. Roles with the tablepermissions are set and assigned to a contact.

    When using external authentication, another table is filled, which relates the external id with the conact. I think, the name of the table is somethinfg like external Identities. Its a 1-n relation from thecontacts and can be seen from there. For each external login, there has to be an entry in that table with a lookup to the contact (ok, obvious), the id od the external provider, usually something like https://account.microsoft.com/<tenantid> or so. And the userid in the foreign system. Usally (but can be anything) a guid sent along with the token. Not sure, which claim is used from the token, i forget this always 🙂

    And the contact has to be portal enabled.

    When all theses conditions are met, the external authentication will select the correct contact.

     

    Usually, when signing up with an external identity, the contact can be generated and directly linked to the external provider.

     

    A lot of text, sorry for that.

    Hope it helps,

      Christian

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >