Giter Site home page Giter Site logo

I am not getting useful/appropriate information while using some functionality of ASOS. about aspnet.security.openidconnect.server HOT 1 CLOSED

SandeepRasgotra avatar SandeepRasgotra commented on July 18, 2024
I am not getting useful/appropriate information while using some functionality of ASOS.

from aspnet.security.openidconnect.server.

Comments (1)

SandeepRasgotra avatar SandeepRasgotra commented on July 18, 2024

Point 1 : Got solution by this link https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/500.

Point 2: Not able to found. (Basically i want to expire or vanish access and refresh token on logout).
I tried revoke endpoint as well (response is invalid request - details in point 4).

Point 3: This https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/532 and https://stackoverflow.com/questions/44844139/asos-token-validation-is-not-working-when-having-separate-authorization-server is working for me.

Point 4. Token Revocation is not working.
I have debug the code and found that it is rejecting the context in OpenIdConnectServerHandler class in below mentioned code.
var context = new ValidateRevocationRequestContext(Context, Scheme, Options, request); await Provider.ValidateRevocationRequest(context);

context.IsRejected is true after above method

The request(post) contains clientId, clientsecret, token as access token or refresh token and token_hint_type. I am not getting to conclusion why this is happening?

Update 1 for Point 4 :
Make context validate by below mentioned code.
public override async Task ValidateRevocationRequest(ValidateRevocationRequestContext context) { context.Validate(); }

Now i got to know by debugging ASOS code that there is no built in logic for token revocation , am i right ? if this is the scenario then i need to write mine custom logic to revoke the token in
public override async Task HandleRevocationRequest(HandleRevocationRequestContext context) {.. code }

Now i am wondering what is the way to revoke the token (access and refresh), because these are self contained and not stored in DB like openiddict( i have looked the revoke logic of this).

Update 2 for Point 4 :

By this https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/263 , we as a final developer need to implement this logic.

from aspnet.security.openidconnect.server.

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.