Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How do I set the signoutRedirect to control where I end up when logging out IdentiyServer. It is ignoring what I have in post_logout_redirect_uris for the client.

$
0
0

I am using the following with a JavaScript Client to logout of an IdenityServer4 api.

var config = {
    authority: "http://localhost:7601",
    client_id: "ClientLocal",
    redirect_uri: "http://localhost:8200/callback.html",
    response_type: "id_token token",
    scope: "openid profile api1",
    post_logout_redirect_uri: "http://localhost:8200/default.html"
};
var mgr = new Oidc.UserManager(config);
function logout() {
        mgr.signoutRedirect();
}

It does log me out, but leaves me at the IdentityServer login page, and not back at the client login page.

What am I doing wrong?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>