The redirect uri adding http request instead of https in my rails application Login With AD. i tried to pass redirect uri in omniauth.rb file as well but no luck.

Hafeez Malik 0 Reputation points

Request Id: 52af6ea6-9c50-4ace-8728-d3fa02a54700

Correlation Id: e85b1e23-327c-4e57-9632-5d9501d08825

Timestamp: 2023-11-14T13:24:15Z

Message: AADSTS50011: The redirect URI '' specified in the request does not match the redirect URIs configured for the application '25940369-fbe5-4b21-9382-0d014d481e30'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to to learn more about how to fix this.

Flag sign-in errors for review: Enable flagging

If you plan on getting help for this problem, enable flagging and try to reproduce the error within 20 minutes. Flagged events make diagnostics available and are raised to admin attention.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,147 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 22,676 Reputation points Microsoft Employee

    Hi @Hafeez Malik

    I don't know what omniauth.rb is but the redirect URI doesn't match what's configured in the app registration for your app. Your redirect uri in your app settings should match what's been configured, see Tutorial: Register an app with Microsoft Entra ID (Microsoft Dataverse) - Power Apps | Microsoft Learn for more details. Normally, you shouldn't have to set the redirect url for your Azure AD settings in your app because it can rely on said registration.

    0 comments No comments