Skip to content

Commit

Permalink
Merge pull request #336 from jeffdahlcorpay/patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock authored Sep 13, 2023
2 parents 0673ddb + c75b25b commit 8c8b05f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IdentityServer/v6/docs/content/apis/aspnetcore/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services.AddAuthentication("token")
```

## Supporting both JWTs and reference tokens
It is not uncommon to use the same API with both JWTs and reference tokens. In this case you setup to authentication handlers, make one the default handler and provide some forwarding logic, e.g.:
It is not uncommon to use the same API with both JWTs and reference tokens. In this case you setup two authentication handlers, make one the default handler and provide some forwarding logic, e.g.:

```cs
services.AddAuthentication("token")
Expand Down Expand Up @@ -94,4 +94,4 @@ public static (string, string) GetSchemeAndCredential(HttpContext context)

return (parts[0], parts[1]);
}
```
```

0 comments on commit 8c8b05f

Please sign in to comment.