问题
I am implementing .Net Core application with OAuth 2.0 JWT authorization and authentication.
In action/controller layer I need an access to JWT payload data of current user (or JWT token as it is).
How is it possible to do?
回答1:
Try:
this.User
in your Controller/Action.
If you need claims add .Claims
来源:https://stackoverflow.com/questions/42559490/jwt-token-data-access-from-action-controller-layer