Jack
07/30/2024, 10:22 AMcsharp
public class UserLogoutSuccessEventHandler : INotificationHandler<UserLogoutSuccessNotification>
{
private readonly IOptions<AzureAdOptions> _azureOptions;
public UserLogoutSuccessEventHandler(IOptions<AzureAdOptions> azureOptions)
{
_azureOptions = azureOptions;
}
public void Handle(UserLogoutSuccessNotification notification)
{
notification.SignOutRedirectUrl = $"{_azureOptions.Value.Instance}{_azureOptions.Value.TenantId}/oauth2/v2.0/logout?post_logout_redirect_uri={_azureOptions.Value.PostLogoutRedirectUri}";
}
}
(it is registered within a composer)
This has worked without problem and was triggered when clicking on the logout button inside the backoffice. (see screenshot)
Now when i try the same setup in Umbraco 14 it does not trigger anymore when clicking the logout button, is this a bug ? and are there any known workarounds.
The event is still documented in v14 https://docs.umbraco.com/umbraco-cms/reference/security/backofficeusermanager-and-notifications as far as i can tell.
https://cdn.discordapp.com/attachments/1267789349890822207/1267843240686653564/sidepanellogin.png?ex=66aa4287&is=66a8f107&hm=352555f384cf5c2d65750555cb3e96559170dbadd9f1035a561506d145be11e8&Andy Boot
07/31/2024, 9:41 PMJack
08/02/2024, 5:09 AMAndrew McKaskill
12/05/2024, 1:14 PMAndrew McKaskill
12/05/2024, 1:16 PM