Comments (1)
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)
- How can handle Authorize attribute on ASOS HOT 6
- Does not support Owin/Katana 3/4 HOT 1
- Plans for the aspnet-contrib introspection, validation and server middleware for ASP.NET Core 3.0 HOT 5
- Support Source Link HOT 4
- Serve ui endpoints in separate web client HOT 2
- Add no-store as part of the CacheControl headers to totally prevent response being saved HOT 3
- get userinfo HOT 3
- AllowInsecureHttp should allow onion addresses (Tor) HOT 4
- Getting 404 issue when requesting the token from postman/Restlet API
- Add support for async OnHandleTokenRequest HOT 1
- Access token generated but authorize attribute gives internal server error HOT 1
- Make ID Token signature mandatory HOT 2
- nonce (xdafadsfdsa) does not match nonce from token () HOT 1
- Support for User Managed Access (UMA)? HOT 1
- User is already not authorization at HandleLogoutRequest
- [Q]Hosting Azure Functions sample HOT 1
- open-id configuration modifications HOT 2
- Support for ASP.Net core 3.1? HOT 6
- Q: Is this still active, relevant in contemporary contexts? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnet.security.openidconnect.server.