Skip to content

Commit

Permalink
Merge pull request vapor#216 from Cellane/patch-2
Browse files Browse the repository at this point in the history
Fixed second level of unordered lists on JWT Overview page
  • Loading branch information
tanner0101 authored Sep 19, 2017
2 parents 1b3c613 + 7f86b03 commit 350ec4a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions 2.0/docs/jwt/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ This guide gives an overview of using the JWT provider package.
`JWTProvider` can be configured in **3** different ways:

- Custom signers defined in `jwt.json`
- Supports (private/public): `hmac`, `rsa`, `esdca`.
- Supports (private/public): `hmac`, `rsa`, `esdca`.
- Legacy custom signer defined in `jwt.json`.
- Supports (private/public): `hmac`, `rsa`, `esdca`.
- Supports (private/public): `hmac`, `rsa`, `esdca`.
- Remote JSON Web Key Set (`jwks.json`) URL
- Supports (private/public): `rsa`.
- Supports (private/public): `rsa`.

If your Vapor app is acting as an Authentication Provider, you may want to use either the `Legacy custom signer` setup, or the `Custom signers` setup, which is great if you want to perform certificates rotation.

Expand All @@ -37,9 +37,9 @@ Custom signers are not backward compatible and must specify an additional `kid`
- type: `unsigned`, `hmac`, `rsa`, `esdca`
- kid: an unique identifier
- algorithm:
- type[`hmac`]: `hs256`, `hs384`, `hs512`
- type[`rsa`]: `rs256`, `rs384`, `rs512`
- type[`esdca`]: `es256`, `es384`, `es512`
- type[`hmac`]: `hs256`, `hs384`, `hs512`
- type[`rsa`]: `rs256`, `rs384`, `rs512`
- type[`esdca`]: `es256`, `es384`, `es512`

`Config/jwt.json`
```json
Expand All @@ -60,9 +60,9 @@ This is backwards compatible with the previous implementation.

- type: `unsigned`, `hmac`, `rsa`, `esdca`
- algorithm:
- type[`hmac`]: `hs256`, `hs384`, `hs512`
- type[`rsa`]: `rs256`, `rs384`, `rs512`
- type[`esdca`]: `es256`, `es384`, `es512`
- type[`hmac`]: `hs256`, `hs384`, `hs512`
- type[`rsa`]: `rs256`, `rs384`, `rs512`
- type[`esdca`]: `es256`, `es384`, `es512`

`Config/jwt.json`
```json
Expand Down

0 comments on commit 350ec4a

Please sign in to comment.