❔ How to remotely log out a user from a Blazor app ?

There's a page in my server-side blazor app where authorized admins can assign or remove roles for users. In order for the user's updated roles to take effect, they must log out, allowing for a new cookie to be generated with the updated claim values. Any proper way to solve that without using db entities ?
2 Replies
blinkbat
blinkbat2y ago
$"https://login.microsoftonline.com/{Configuration["AzureAd:TenantId"]}/oauth2/logout?post_logout_redirect_uri=https://whatever-you-want";
$"https://login.microsoftonline.com/{Configuration["AzureAd:TenantId"]}/oauth2/logout?post_logout_redirect_uri=https://whatever-you-want";
I just use this as a link
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.