Code Monkey home page Code Monkey logo

Comments (19)

leastprivilege avatar leastprivilege commented on May 23, 2024

yes - this is not done yet.

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

OK thanks, and will it work with the jti property from the token?

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

?

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

Client Config on server:
IncludeJwtId= true,

I use response_type = "token".

Then I would like to logout like this:

 // /connect/endsession?id_token_hint={jti property from token}&post_logout_redirect_uri=https://localhost:44347/unauthorized.html
        var Logoff = function () {
            var token = localStorageService.get("authorizationData");
            var data = getDataFromToken(token);

            var authorizationUrl = 'https://localhost:44345/connect/endsession';
            var id_token_hint = data.jti;
            var post_logout_redirect_uri = 'https://localhost:44347/unauthorized.html';
            var state = Date.now() + "" + Math.random();

            var url =
                authorizationUrl + "?" +
                "id_token_hint=" + id_token_hint + "&" +
                "post_logout_redirect_uri=" + encodeURI(post_logout_redirect_uri) + "&" +
                "state=" + encodeURI(state);

            ResetAuthorizationData();
            $window.location = url;
        }

Possible?

Thanks Damien

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

it is not implemented yet - don't try to work around that ;)

Jti is not meant for logout.

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

We'll have an update to idsrv4 once rc2 is released.

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

When it is implemented, sometime after RC2 release, how will logout be supported when using response_type="token" then?

Greetings Damien

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

since token on its own would be OAuth 2.0 and not OpenID Connect - there is no logout.

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

Why do you support response_type="token" if you cannot logout then?

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

logout is part of the openid connect spec. OAuth 2.0 on its own is not an authentication protocol (hence no logout).

You can still logout of identityserver of course.

I can see that this is confusing ;)

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

Well you always said we should use OpenId connect. Have to re-implement now... It's not so easy to implement "id_token token" in javascript.

Thanks Damien

from identityserver4.

brockallen avatar brockallen commented on May 23, 2024

JS is not that bad -- you can look into the oidc-client/oidc-token-manager, or just use the idtoken validation endpoint:

https://identityserver.github.io/Documentation/docsv2/endpoints/identityTokenValidation.html

from identityserver4.

brockallen avatar brockallen commented on May 23, 2024

Also, here's a link to a relevant video: https://vimeo.com/131636653

from identityserver4.

damienbod avatar damienbod commented on May 23, 2024

Thanks, got it working, was missing the openid scope in the request. Thanks for the link, I look forward to watching it.

Greetings Damien

from identityserver4.

theDiverDK avatar theDiverDK commented on May 23, 2024

Hi there

Any idea about the ETA of RC2?

Looking forward to be able to use the Session logout feature.

from identityserver4.

leastprivilege avatar leastprivilege commented on May 23, 2024

No

https://github.com/aspnet/Home/wiki/Roadmap

from identityserver4.

ericgreenmix avatar ericgreenmix commented on May 23, 2024

Any work happening on this guys?

from identityserver4.

nielslbeck avatar nielslbeck commented on May 23, 2024

Looking forward to a solution on this one :-)

from identityserver4.

lock avatar lock commented on May 23, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from identityserver4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.