Introduction
In this guide, we’ll explore the cause of this problem and outline the steps needed to integrate LinkedIn authentication successfully.
Understanding the Issue
Resolution
Follow these steps to configure LinkedIn authentication in your Power Pages Portal:1. Register a LinkedIn Application
- 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
- Locate “Sign in with LinkedIn using OpenID Connect” and click “Request Access”.
3. Enable OAuth Scopes
4. Set Up Identity Provider in Power Pages
- 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
- “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
7. Update Site Settings
- 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").