Skip to content
Rishan Solutions
Rishan Solutions
  • PowerApps
  • SharePoint online
    • Uncategorized
    • Uncategorized
  • PowerAutomate
Rishan Solutions
Latest Posts
  • Agentic AI: The Dawn of Autonomous Intelligence Revolutionizing 2025 June 24, 2025
  • Recursive Queries in T-SQL May 7, 2025
  • Generating Test Data with CROSS JOIN May 7, 2025
  • Working with Hierarchical Data May 7, 2025
  • Using TRY_CAST vs CAST May 7, 2025
  • Dynamic SQL Execution with sp_executesql May 7, 2025

External identity provider not redirecting properly

Posted on April 25, 2025April 25, 2025 by Rishan Solutions

Loading

When using an External Identity Provider (e.g., Google, Facebook, LinkedIn, or Azure AD) for authentication in Power Pages (formerly Power Apps portals), a redirection issue after authentication can prevent users from accessing the page they intended. This issue typically arises when the identity provider doesn’t redirect the user back to the portal after login, either due to misconfiguration or session/token issues.

Here’s a step-by-step troubleshooting guide to help you resolve this issue:


Step 1: Verify Redirect URI Configuration

Redirect URIs are critical when integrating external identity providers. These URIs define where the identity provider sends users after a successful login. If not configured properly, the user might not be redirected back to the portal or might land on an error page.

A. Check External Identity Provider Settings

  1. Go to the Identity Provider configuration page in Power Pages:
    • Navigate to Portal Management.
    • Under Authentication, find the Identity Providers section.
  2. Review the Redirect URI configured for the external identity provider.
    • The Redirect URI should be set to the portal’s login callback URL (e.g., https://<your-portal-name>.powerappsportals.com/_services/auth/callback).
    • Make sure this matches exactly what is configured in the Identity Provider platform (Google, Azure AD, Facebook, etc.).
  3. For services like Google or LinkedIn, ensure that:
    • The callback URL is added correctly in their respective developer portals.
    • The redirect URI is registered with the correct domain and paths.

B. Test Redirect URI in External Identity Provider

If the external identity provider is Google, Facebook, or Azure AD, ensure that the callback URL used in Power Pages matches the one registered in the provider’s configuration. Mismatches can prevent the redirect after login.


Step 2: Review Authentication Settings in Power Pages

A. Check Portal Authentication Settings

  1. In Portal Management, navigate to Authentication.
  2. Verify that the External Identity Provider is correctly configured, including:
    • Client ID
    • Client Secret
    • Authentication Method (OAuth, OpenID Connect, etc.)
    • Redirect URL

Make sure the External Identity Provider setting is correctly pointing to the chosen provider and that it’s authorized for your application in the identity provider’s settings.

B. Ensure Proper Authentication Flow

If you’re using a multi-step authentication flow (e.g., first logging into Azure AD, then linking Google or Facebook), ensure that each step in the authentication flow is handled correctly.


Step 3: Clear Cookies and Cache

Browsers often cache previous login sessions and tokens, which can cause issues with authentication. To eliminate this possibility:

  1. Clear browser cookies and cache.
    • This ensures that old session data doesn’t interfere with the authentication process.
  2. Try incognito mode or a different browser to rule out browser-specific issues.

Step 4: Check for Token or Session Expiry

After a user logs in through an external identity provider, a token is typically generated to maintain the session. If the session token expires or is invalidated, the redirection may fail.

A. Token Expiry

If you’re using OAuth or OpenID Connect for authentication, check the token expiry settings:

  • Tokens might expire too soon or not be refreshed automatically, causing a failed redirect after login.
  • Review the identity provider’s session or token settings and adjust the expiration period as needed.

B. Session Expiry

Check whether the session is being cleared incorrectly after login or redirection:

  • If you’re using SSO (Single Sign-On), ensure that the session is properly maintained across different systems and isn’t prematurely ending.
  • For Azure AD or similar identity providers, check session policies and cookie expiration settings.

Step 5: Review Power Pages Access Control Settings

A. Access Control Rules for Pages

  1. Go to Portal Management.
  2. Review Access Control Rules for the page the user is trying to access.
    • Ensure the page is set to allow authenticated users (e.g., roles like Authenticated Users or specific roles the user belongs to).
    • If the access control rule is too restrictive, users may be redirected incorrectly after login.

B. Set Default Redirect After Login

If the redirection fails, you can specify a default landing page for users post-login:

  1. In Portal Management, under Web Pages, select the page to be used after a successful login.
  2. Set this page as the default landing page by configuring the Redirect URL to point to this page.

Step 6: Enable Portal Diagnostics and Logs

Power Pages offers diagnostic tools that can help you understand where the issue lies:

  1. Go to Portal Management > Site Settings.
  2. Enable Trace Logs by setting:
    • Name: EnableTraceLogs
    • Value: true
  3. Look for errors in the trace logs after the user tries logging in. You can access these logs via the portal’s diagnostic page:
    • Navigate to https://your-portal-name.powerappsportals.com/_services/about
    • Look for issues related to authentication or token redirection.

This will help identify if there’s a specific error or failure during the authentication or redirection process.


Step 7: Check for Security or Firewall Issues

Some issues may arise due to firewall settings or security policies blocking redirection or authentication requests.

A. Review Firewall Settings

Ensure that there are no security policies or firewalls blocking requests to the redirect URI. This could interfere with the authentication flow, causing the user to not be redirected back after login.


Step 8: Test External Identity Provider Integration

Test the integration with the external identity provider outside of Power Pages:

  1. Try logging in through the external identity provider’s developer portal (Google, Facebook, etc.) directly.
  2. Ensure the redirect URI is functioning as expected by checking the browser’s response and debugging logs.

Step 9: Use a Different External Identity Provider

If the problem persists with one identity provider, try integrating a different provider (e.g., switch from Google to Azure AD) to isolate whether the issue is with the identity provider itself.

Posted Under Power Pagesauthentication redirection failure external authentication issue external identity provider Power Pages External Identity Provider redirection external login redirect error Google login redirect error LinkedIn login redirect error OAuth redirection issue Power Pages Power Pages login issue Power Pages portal diagnostics Power Pages session issue Power Pages SSO issue Power Pages troubleshooting token expiration Power Pages

Post navigation

401 – Unauthorized when accessing secure page
AAD B2C login redirect loop

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Agentic AI: The Dawn of Autonomous Intelligence Revolutionizing 2025
  • Recursive Queries in T-SQL
  • Generating Test Data with CROSS JOIN
  • Working with Hierarchical Data
  • Using TRY_CAST vs CAST

Recent Comments

  1. Michael Francis on Search , Filter and Lookup in power apps
  2. A WordPress Commenter on Hello world!

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • March 2024
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • January 2022

Categories

  • Active Directory
  • AI
  • AngularJS
  • Blockchain
  • Button
  • Buttons
  • Choice Column
  • Cloud
  • Cloud Computing
  • Data Science
  • Distribution List
  • DotNet
  • Dynamics365
  • Excel Desktop
  • Extended Reality (XR) – AR, VR, MR
  • Gallery
  • Icons
  • IoT
  • Java
  • Java Script
  • jQuery
  • Microsoft Teams
  • ML
  • MS Excel
  • MS Office 365
  • MS Word
  • Office 365
  • Outlook
  • PDF File
  • PNP PowerShell
  • Power BI
  • Power Pages
  • Power Platform
  • Power Virtual Agent
  • PowerApps
  • PowerAutomate
  • PowerPoint Desktop
  • PVA
  • Python
  • Quantum Computing
  • Radio button
  • ReactJS
  • Security Groups
  • SharePoint Document library
  • SharePoint online
  • SharePoint onpremise
  • SQL
  • SQL Server
  • Template
  • Uncategorized
  • Variable
  • Visio
  • Visual Studio code
  • Windows
© Rishan Solutions 2025 | Designed by PixaHive.com.
  • Rishan Solutions