Azure B2C implementation redirection 404 issue - azure-active-directory

Im trying to implement Azure AD B2C with Springboot app as mentioned in below documentation.
https://learn.microsoft.com/en-us/java/azure/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory-b2c-oidc?view=azure-java-stable
I tried exact steps. But once I click on userflow link, it is not able to redirect to the signup or sign-in screen. It is throwing 404 forbidden error page. Appreciate any references and help.
Thank you.

Related

Azure AD B2C user login redirect URI not recognized

I'm implementing a user login using Azure AD B2C. I've created an App Registration in my B2C tenant and added http://localhost:3000 as the redirect URI. Now I've also implemented it in my React app using the MSAL React library. For some weird reason I'm getting the error that the client using "xxx id" does not have http://localhost:3000 set as a redirect URI. This must be something stupid and small, but I'm just not seeing it.
This is the error I'm getting:
AADB2C90006: The redirect URI 'http://localhost:3000' provided in the request is not registered for the client id 'xxx'.
Now I'm using the provided client ID to search my Azure, I'm finding the App Registration, and I see the following:
So what am I missing here?
I guess I was impatient. Just took about ten minutes.

Error while accessing ADB2C Forgot password link in SignIn page

We have integrate ADB2C with a java web application, once user click on Signin button user navigated to the Signin page, while accessing the Forgot password link in Signin page user unable to redirect to forgot password page and b2c issuing this error code “AADB2C90118”. I’ve found that this is a bug in B2C. Please suggest us if this bug is already fixed in ADB2C. Else, please suggest an approach to handle this forgot password error from the java web application standpoint. I really appreciate your time in reading this and sharing your thoughts. Thank you!!
This is not a bug.
This is by design.
This flow is now deprecated. You can find a more modern flow here.

ReactS Azure AD Authentication issue with redirect url appnding null

I am trying to integrate Azure AD Authentication using react-adal library.
But after successful authentication it is getting redirected to base-url/null and getting error requested resource does not exsist. This issue is only happening in the application deployed in appservice. And the redirection is working fine when running in localhost
In order to fix this issue we need to set the default page in the application settings. so that after authentication it will be redirected to the page mentioned in the app service and avoids adding null to the base URL. Please refer image Default page settings

Azure AD Logout is not working - Angular SPA

I am using Azure AD authentication for my angular based single page application. Sign in functionality works like a charm and facing issues with the logout. Once the user logged out from the session, its hang on the Azure AD sign out page and not get redirected to the URI given in the post_logout_redirect_uri and allowing users to login without entering credentials again.
Looked for the help over the web and spent almost a week to resolve the issue. But still I didn't find any resolution for this. I came to know that already many users are facing the same issue and no solution provided for the same.
Has anybody faced this issue before and have a solution for the same?
I assume that you have added the app in Azure AD B2C .
Unfortunately,Azure new portal has removed POST LOGOUT LINK URI in company branding. In Azure classic portal , it also does not work for now. If this is important to you ,you can upvote it in this Feedback Forum.
Hope this helps!
I could able to fix the issue by passing b2c signup/signin policy id in the logout url. Now its get redirected to the desired logout landing page without hanging on Azure AD sign out page.
https://login.microsoftonline.com/{TENANT}/oauth2/v2.0/logout?p={B2C_SIGNUPIN_POLICY_ID}&post_logout_redirect_uri={APPLICATION_URL}

AppEngine Datastore Admin does not work with federated login

When I click on "Datastore Admin" in my AppEngine (Python27) application with federated login, the following error shows up:
Error: Not Found
The requested URL /_ah/login_required?continue=https://ah-builtin-python-bundle-dot-latest-dot-ah/datastore_admin/?app_id=s~lpgng2 was not found on this server.
Seems like I am redirected to the /_ah/login_required page on admin instance and not on the frontend instance.
What's wrong?
If you take a closer look at the documentation here: https://developers.google.com/appengine/articles/openid as soon as you select "Federated Login" your code would need to handle requests to /_ah/login_required in order to serve any requests that requires login. Datastore admin is just a built-in app, which have its handlers requiring login.
Implementing this should resolve this. Hope it helps!

Resources