You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe the problem.
I would like to sign out via the standard method but either; provide a redirect on signout value on config, or hook onto the config event OnRemoteSignOut to go to the home page.
Many Apps allow users to see basic app info without being logged in, and it's not the best experience to be left on a page with no clear way to get back to the homepage.
I am working in Blazor Server where I do not have an API layer, other than the Microsoft.Identity.Web package added controllers to handle signin and signout. So I'd rather avoid creating more complexity in my codebase.
#21580 ---- This issue described the problem but was closed as a workaround was to create your own controller to override the default.
Thanks for the help 👍
Describe the solution you'd like
Is there capacity to allow for a redirect uri to be provided that will be hit after signout from tenant?
Additional context
I have not worked a heap with auth at this time so apologies for any oversight.
If I am not mistaken the MSAL OIDC (not the Identity.Web) package provides a method to redirect ? So this can be a last resort if I have to pull out this library.
The text was updated successfully, but these errors were encountered:
Because Blazor Server works within a websocket connection, it doesn't have access to an HttpContext and so signing out by calling HttpContext's SignOut method isn't available directly. That's why there needs to be a controller to act as an endpoint that will be able to act on an HttpContext. Perhaps you already know, and if so sorry to repeat the info!
We don't have evidence that adding this extra controller (or other middleware/endpoint) is a significant problem for many people in the community, so we're unlikely to prioritize changing this any time soon. We can reconsider if a lot of other people run into difficulty with this. Hope it's OK with you to add the controller.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I would like to sign out via the standard method but either; provide a redirect on signout value on config, or hook onto the config event OnRemoteSignOut to go to the home page.
Many Apps allow users to see basic app info without being logged in, and it's not the best experience to be left on a page with no clear way to get back to the homepage.
I am working in Blazor Server where I do not have an API layer, other than the Microsoft.Identity.Web package added controllers to handle signin and signout. So I'd rather avoid creating more complexity in my codebase.
#21580 ---- This issue described the problem but was closed as a workaround was to create your own controller to override the default.
Thanks for the help 👍
Describe the solution you'd like
Is there capacity to allow for a redirect uri to be provided that will be hit after signout from tenant?
Additional context
I have not worked a heap with auth at this time so apologies for any oversight.
If I am not mistaken the MSAL OIDC (not the Identity.Web) package provides a method to redirect ? So this can be a last resort if I have to pull out this library.
The text was updated successfully, but these errors were encountered: