Comments (3)
These samples are pretty old - for token management, rather use this:
https://github.com/IdentityModel/IdentityModel.AspNetCore
from aspnetcoresecuritysamples.
Thanks for the quick reply.
I already tried the IdentityModel lib, unfortunately I have the same problem there that the method await RevokeUserRefreshTokenAsync();
also does not return if I called SignOutAsync from the ValidatePrincipal method before.
options.Events.OnSigningOut = async e =>
{
await e.HttpContext.RevokeUserRefreshTokenAsync();
};
Also, I want to refresh the access_token not only when I make a call to an external api, but even before I go through authorization to check if the necessary permissions are still there.
If this is possible with the IdentityModel lib and I have overlooked this possibility so far I am very sorry.
from aspnetcoresecuritysamples.
Sorry I never had this problem. So I do not know.
from aspnetcoresecuritysamples.
Related Issues (7)
- OIDC sample: Authorize roles not working
- Suggested sample additions: Blazor WASM, Blazor Hybrid HOT 1
- For no resason i can not view ur website from Nigeria ( http://www.leastprivilege.com) HOT 2
- Authorization sample - Can't get passed login view with http
- OIDC api delegation HOT 2
- InvalidOperationException: No refresh token found in cookie properties. A refresh token must be requested and SaveTokens must be enabled.
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 aspnetcoresecuritysamples.