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}";
        }
    }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 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by