-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Login/Out problem with Entra External ID (example BlazorWebAppEntra-.net9). Login succesful, logout with problem #60941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Dear @guardrex, I really do not understand your reply:
In addition, if I press "continue" when the exception is thrown, app execution continues "normally" (as much as i can figure out). The user is logout and the app is restarted (as expected from the returnUrl supplied from
|
Dear @guardrex, Just I noticed that you actually couldn't login in Entra External ID. Strange. I just paste again the appsettings from my working solution (Secret is deleted):
The underscore is part of the password ("[email protected]" "hw3Gc590_") . |
That's a new Microsoft service/tenant that I'm not familiar with yet. The product unit should be able to help. Stand-by here until they come on and advise further. We'll devise new documentation coverage to support ME-EID as soon as we can. |
Thanks for reaching out. Just to clarify, @nefen, app functionality continues working normally when continuing after the exception causes the debugger to break? |
My app continues without a problem (I haven't identified anything yet). The exception is thrown during redirection to the screen, where the user selects (verifies maybe is more accurate) the account he wishes to logout. After pressing continue, the account to be logout can be selected. After the selection, the procedure continues and the user is logout. After logout, my app automatically redirects to the login screen. If a new user logs in (or even the same), the app restarts without any identifiable problem. |
Thanks for reaching out. The exception is getting thrown from JavaScript in the Entra portal, so this isn't a problem with ASP.NET Core. The exception also doesn't impact app functionality (even though it causes the debugger to pause), so it can be ignored. |
Hi @MackinnonBuck I use MS Entra External ID as a CIAM for my web app (NET Core). When user clicks on the Logout link ( I would appreciate any help |
Is there an existing issue for this?
Describe the bug
I tried to follow this document:
Secure an ASP.NET Core Blazor Web App with Microsoft Entra ID
and test this example:
9.0/BlazorWebAppEntra
I can login without problem, but logout throws an exception.
I actually made no change to the sample code, just added AzureAD data in apsettings.json.
Even this was not an easy task. In the sample, the requested info inside apsettings.json are:
With this set of data, I coudln't login in Entra External ID. Finally, I find a very interesting aritcle:
ASP.NET Core authentication using Microsoft Entra External ID for customers (CIAM)
damienbod who stated the following apsettings.json data:
By following this pattern, I registered an app by using the following:
Expected Behavior
To login and logout without this problem:
parameter a = '{"error":"Internal Error: ServerData.urlRU was not specified.","userList":[],"postLogoutRedirectUriValid":false}'
when I press continue, then the following appear in the output window:
Steps To Reproduce
[email protected] hw3Gc590_
app registration is
Exceptions (if any)
Uncaught TypeError TypeError: Failed to execute 'postMessage' on 'Window': The provided value cannot be converted to a sequence.
.NET Version
9.0.3
Anything else?
cc: @guardrex dotnet/blazor-samples#489
The text was updated successfully, but these errors were encountered: