IdentityServer4 PostLogoutRedirectUri

后端 未结 5 879
无人共我
无人共我 2021-01-02 05:01

I am confused about how this is used.

Most examples I\'ve seen have it given as \"/signout-callback-oidc\". That seems to indicate that it uses OIDC middleware in t

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 05:56

    Building on top of @McGuireV10 answer if your project is a Blazor WASM, then the change would be like this:

    // Adds OpenID Connect Authentication
    builder.Services.AddOidcAuthentication(options =>
    {
     options.ProviderOptions.Authority = settings.Authentication.Authority;
     options.ProviderOptions.ClientId = settings.Authentication.ClientId;
     options.ProviderOptions.ResponseType = "code";
     options.ProviderOptions.ResponseMode = "query";
    
     //
     options.AuthenticationPaths.LogOutCallbackPath = "authentication/logout-callback";
    
     builder.Configuration.Bind("oidc", options.ProviderOptions);
    });
    

提交回复
热议问题