Rails - Azure AD SSO error - Not found. Authentication passthru - ruby-on-rails

I am trying to setup Azure AD SSO for my Rails app. I have followed all the steps from this documentation.
When I click on the Login link, I see an error:
URL - http://localhost:3000/users/auth/microsoft?prompt=select_account
Message - Not found. Authentication passthru.
I tried with and without the tenant_id to use the common flow. That did not work either.
I was expecting a redirection to Azure AD for authentication and login after the authentication process.

Related

Issue on Redirect URI in DotNet MVC Web App during Authentication

I Have Created Dotnet MVC Web APP which is going to use Azure AD with OpenID , i am facing while iam trying signin an user
The Sign in Operation works By first asking the user's Consent and getting the Token from Azure AD which redirected Back to the Application.During The Redirection process how should i declare the redirect uri, since i have used OpenIdConnect is it mandatory to mention signin/oidc followed by application Uri
Error
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application
I Have Followed same process in Azure AD Samples as Mentioned
You must ensure that the redirect_uri configured in the Azure portal is exactly the same as the redirect_uri configured in the project's configuration file.
For your question, if the redirect_uri set in Azure Portal is https://localhost:44330/signin-oidc, then it should also be https://localhost:44330/signin-oidc in the configuration file.
Please see: Configuration files.

Keycloak - merge users with same email

I am trying to allow users log in with multiple social media identity providers but have them linked to one email using Keycloak 8.0.1. Logging in for each one IDP works.
When I try to first login with google this works. When I then log in with facebook, I am getting
KC-SERVICES0013: Failed authentication: org.keycloak.authentication.AuthenticationFlowException. Futher in the log I see a IDENTITY_PROVIDER_FIRST_LOGIN_ERROR. The message is I am just using the default authentication flows - First Broker login as First Login Flow and empty as Post Login Flow.
I assume the Authentication flow needs to be adjusted somehow?
Any ideas are much appreciated.

How to fix my Facebook Login issue with ominauth and rails?

Im trying to make my facebook login works with my application. This is my setup on facebook developer:
My applications is running correctly on my heroku server.
When I try to sign with Facebook I get this message:
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
What Im missing here?
Thanks

How to integrate Oauth2 in Drupal for user login?

I am planning to integrate Azure Authentication in my Drupal 7 site. I got the Token endpoint URL, Client ID, Client secret from Azure Support team for my site URL. When i tried to connect getting below error "Access token requested for user XXXXX: FAILURE"
Thanks in advance
Girija
This error can occur for a few reasons:
The client application is not registered in the Azure AD or is not added to the user's Azure AD tenant. Ensure that you have registered the application in the correct tenant and ensure that the client id, client secret, and tenant ID in your application registration match what you have in your web.config or app settings.
The error usually can also mean you got an incorrect access token for the resource. Are you using Graph API? I have seen this error before when someone tried to get the access token for Azure AD Graph API but used that access token to access Microsoft Graph API. The same could be going on with your drupal site.
Can you please post the full error message here?

Spring boot security with OAuth2 for google login

I'm trying to configure a security layer in my project using spring boot with OAuth2.0 for google login and basic http form authentication. I could invoke the google login and i can access the protected resources from google but when i tried to authenticate from google i'm getting following error, There was an unexpected error (type=Unauthorized, status=401).
Authentication Failed: No AuthenticationProvider found for com.samsoft.oauth2.filter.CustomOAuth2AuthenticationToken
I have shared the code in github repository. Please look on the below link to see the code i'm working on.
[https://github.com/divat/spring-oauth-google-login/tree/master/spring-oauth2-login][1]
TIA.,

Resources