Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkli authored Jul 21, 2020
1 parent fe32f5c commit 1620314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ returns http status code 401 if the request does not contains a valid Authorizat
returns http status code 403 if the authenticated user is not qualified for resources he requests;


##usage:
## usage:
1. reference this dll.
2. add a class implementing the interface IAuthOptionsProvider
3. in your app.config, add <add key="securekey" value="your jwt secure"/>. NOTE: this step is optional
4. and you're done. use user related functions such as CurrentUser, RequiresClaims normally.

##advanced:
## advanced:
add a class implementing ISecurekeyProvider to customize the secure key used by JWT encoder;
inherit class DefaultUserIdentity if you need, implement the ITokenUserMapper interface which extact useridentity from jwt token value;
inherit from Molaware.Nancy.Auth.JWT.Bootstrapper if you need your own Nancy bootstrapper;

0 comments on commit 1620314

Please sign in to comment.