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
{{ message }}
Repository navigation
[Auth][OIDC] OpenID/OIDC to support logout with id_token_hint #2716
Add possibility of using the IdToken when logging out using the OIDC.
Why is this needed:
Currently when using UseAuthentication with AddOidc call with a redirect URL you can experience that logout isn't possible towards some services. This is for example the case with keycloak. Where it requires a id_token_hint when logging out. This is also recommended in the openid specification openidSpec.
Furthermore, it is supported in the IdentityModel API that UNO is wrapping. Implementation wise in the:
src/Uno.Extensions.Authentication.Oidc/OidcAuthenticationProvider.cs
To support this, it requires to add the LogOutRequest in the await _client.LogoutAsync() in above method (line 75 in OidcAuthenticationProvider.cs),and set the IdTokenHint = creds[TokenCacheExtensions.IdTokenKey] for the LogOutRequest. The LogOutRequest is an optional parameter in OidcClient, public virtual async Task<LogoutResult> LogoutAsync(LogoutRequest request = null, CancellationToken cancellationToken = default).
This could be an optional / configurable decision to not break backwards compatibility.
changed the title [-]OpenID/OIDC to support logout with id_token_hint[/-][+][Auth][OIDC] OpenID/OIDC to support logout with id_token_hint[/+]on Nov 25, 2025
Activity
[-]OpenID/OIDC to support logout with id_token_hint[/-][+][Auth][OIDC] OpenID/OIDC to support logout with id_token_hint[/+]