Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
explorer14 committed Nov 18, 2017
1 parent cc4a610 commit 50c257e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ The signing key can be any sufficiently unique minimum 23-character long string

DO NOT expose this key outside of the server, best practice would be to store this key securely (for e.g. in Azure Key Vault or a similar service)

Startup.cs:
## Startup.cs:

## Enable authentication
### Enable authentication

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
Expand All @@ -38,7 +38,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
});
}

## Add required services:
### Add required services:

public void ConfigureServices(IServiceCollection services)
{
Expand Down Expand Up @@ -88,7 +88,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddMvc();
}

## Add the appropriate dependencies in the auth controller:
### Add the appropriate dependencies in the auth controller:

Please see the AccountController.cs file in the reference project to see how the token generator is used to issue access tokens after a successful authentication attempt. The issued JWT will contain all the claims about the user
in addition to the default JWT claims. For subsequent requests, you will be able to extract the user info (like username, first name and last name) from this token and that information will be available via the HttpContext.User
Expand Down

0 comments on commit 50c257e

Please sign in to comment.