Skip to content

Commit

Permalink
Merge pull request #14 from ITfoxtec/Development
Browse files Browse the repository at this point in the history
Bug, sometime redirect back to the wrong page. On logout redirect bac…
  • Loading branch information
Revsgaard authored Nov 12, 2021
2 parents 122922b + 6cf4b50 commit df66df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ The component automatically handle token / session update with use of the refres
<PackageTags>Blazor WebAssembly OpenID Connect (OIDC) Proof Key for Code Exchange (PKCE) id token access token refresh token</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Copyright>© 2020 ITfoxtec</Copyright>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<FileVersion>1.5.0.0</FileVersion>
<Version>1.5.0</Version>
<AssemblyVersion>1.5.1.0</AssemblyVersion>
<FileVersion>1.5.1.0</FileVersion>
<Version>1.5.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ITfoxtec.Identity.BlazorWA.Oidc/OpenidConnectPkce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public async Task LogoutAsync(OpenidConnectPkceSettings openidClientPkceSettings
openidClientPkceSettings = openidClientPkceSettings ?? globalOpenidClientPkceSettings;

var logoutCallBackUri = new Uri(new Uri(navigationManager.BaseUri), openidClientPkceSettings.LogoutCallBackPath).OriginalString;
var state = await SaveStateAsync(openidClientPkceSettings, logoutCallBackUri, navigationManager.BaseUri);
var state = await SaveStateAsync(openidClientPkceSettings, logoutCallBackUri, navigationManager.Uri);

var idTokenHint = await (authenticationStateProvider as OidcAuthenticationStateProvider).GetIdToken(readInvalidSession: true);
if(idTokenHint.IsNullOrEmpty())
Expand Down

0 comments on commit df66df7

Please sign in to comment.