Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Solution to LinkedIn Authentication in Power Apps Portals

(1) ShareShare
ReportReport
Posted on by

Introduction

If you've encountered the error message "Unable to authenticate with the external account provider" while using LinkedIn as an identity provider in Power Pages Portal, you're not alone. This issue arises due to LinkedIn's recent transition to the OpenID Connect protocol, which is not yet fully supported by Power Pages' predefined LinkedIn identity provider. 
In this guide, we’ll explore the cause of this problem and outline the steps needed to integrate LinkedIn authentication successfully. 

Understanding the Issue

The error occurs because Power Pages Portals' default LinkedIn identity provider hasn’t been updated to support the OpenID Connect protocol. This protocol change creates an incompatibility, resulting in authentication failures when users attempt to log in via LinkedIn. 

Resolution

Follow these steps to configure LinkedIn authentication in your Power Pages Portal: 

1. Register a LinkedIn Application

   - Create a LinkedIn app and obtain your Client ID and Client Secret. 
   - Use the following URL for detailed instructions:
 https://learn.microsoft.com/en-us/power-pages/security/authentication/oauth2-linkedin#create-an-app-registration-in-linkedin
 

2. Request OpenID Connect Access

   - Navigate to the “Products” tab in your LinkedIn app. 
   - Locate “Sign in with LinkedIn using OpenID Connect” and click “Request Access”. 
 

3. Enable OAuth Scopes

   - Once access is granted, OAuth scopes such as `openid`, `email`, and `profile` will appear in the “Auth” section. 
 

4. Set Up Identity Provider in Power Pages

   - Open Power Pages Maker, edit your site’s settings, and navigate to “Set up > Identity providers”. 
   - Choose “Other” as the connection provider and “OpenIDConnect” as the protocol. 
   - Assign a custom name for the provider, if needed. 
 

5. Configure Identity Provider Settings

   - Fill in the following fields: 
     - “Authority”: `https://www.linkedin.com/oauth/v2/authorization/`

     - “ClientId”: Use the Client ID from your LinkedIn app. 

     - “Metadata Address”: `https://www.linkedin.com/oauth/.well-known/openid-configuration` 

     - “Scope”: `openid profile email` 

     - “Response Type”: `Code` 

     - “ClientSecret”: Use the Client Secret from your LinkedIn app. 

     - “ResponseMode”: `query` 
 

6. Add Redirect URI

   - Update the OAuth 2.0 settings in the LinkedIn app by adding the Redirect URI for your portal. 
 

7. Update Site Settings

   - Create a new site setting: 
     - Name: `Authentication/OpenIdConnect/OpenId_2/NonceEnabled` 
     - Value: `False` 
     - Adjust the parameter name (`OpenId_1`, `OpenId_3`, etc.) based on your configuration. This parameter can be retrieved from the redirect URL (in this case we have "https://...../signin-openid_2"). 
 

8. Sync Changes and Test

   - Synchronize your updates and test the LinkedIn authentication flow on your portal. 

Conclusion

By implementing the above steps, you’ll be able to integrate LinkedIn authentication into your Power Pages Portal seamlessly. This workaround ensures compatibility with LinkedIn’s OpenID Connect protocol until Microsoft updates the default identity provider.
 
Categories:
  • CU06011352-0 Profile Picture
    CU06011352-0 3 on at
    Solution to LinkedIn Authentication in Power Apps Portals
    Thank you, great answer!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,320 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,111 Most Valuable Professional

Leaderboard