UserLogoutSuccessNotification does not seem to be ...
# help-with-umbraco
j
Hey there! I have a Umbraco v13 project that listens to UserLogoutSuccessNotification
Copy code
csharp
    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&
a
Hi there, I can't help you with your particular issue, but if you feel its a bug please reach out and log an issue via the official channels: https://github.com/umbraco/Umbraco-CMS/issues. Fingers crossed someone can provide a solution. 🤞
j
I will look into creating the issue on the board. As it seems you are always redirected to ``/umbraco/logout`` in v14 and it looks like a 1:1 copy of the standard umbraco login page, where the only option shown is to sign in again, seems a bit weird. I can not find any documentation on how to customize that page as well... What i want to archive is essentially to send the user directly to my external ad provider sign out portal when they click the backoffice logout button, which worked in v13 with the code ive posted 🙂
a
Anyone had an update on this? I can see the bug report filed: https://github.com/umbraco/Umbraco-CMS/issues/16869
I'm happy to take a look at this if someone from HQ is willing to chat through the interplay between the management API and the frontend
30 Views