blog.tokenauthgettingstarted's People
Forkers
darkosimon orney21d onlyforkbj duvitech-llc dowens neo-cphilipp darocha kidok tylerlrhodes crazyants qianthinkover zaiboot muthukumara kassadube malkafly andrey-ostapenko waqaskhan540 kennylisc adriandiaz81 haitham-shaddad liuyuliuyu520 hassansw hectormartin42 k4m4r82 rojovivo burakiskender manhnguyenv luckst xdevelopers tanluutrong2206 bionstt jerryzfc dhirutech tiennvblog.tokenauthgettingstarted's Issues
Token Provider Options no property NonceGenerator?
I get the following error when trying to build: 'TokenProviderOptions' does not contain a definition for 'NonceGenerator' and no extension method 'NonceGenerator' accepting a first argument of type 'TokenProviderOptions' could be found (are you missing a using directive or an assembly reference?)
I see in your TokenProviderOptions you do not have a property for NonceGenerator()?
Is CustomJwtDataFormat actually used?
I am testing your (very nice, thank you ) project but I can't see the following code in Startup.Auth making any difference:
.AddCookie(options => { options.Cookie.Name = Configuration.GetSection("TokenAuthentication:CookieName").Value; options.TicketDataFormat = new CustomJwtDataFormat( SecurityAlgorithms.HmacSha256, _tokenValidationParameters); });
So it seems the CustomJwtDataFormat class can be removed?
Core 2.0 (DELETE ME)
Seems you are taking a very complex approach to something that is all built-in the middleware. Why not just make example using JwtBeaer and how to accept token or auth then SaveToken and it's usage?
Access Token Details from API
Your provider and middleware are great! I followed your blog post on how to implement this and it works flawlessly. Accessing (authorization) the APIs were only half the battle. I need to determine who is the user that is making the API call. From my API controller (or some other base class), how can I access the token's information and retrieve the username?
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.