Skip to content

Commit

Permalink
📝 Update jwt authentication configuration section
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Dec 11, 2023
1 parent 3cfa9d6 commit 61cc85e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/security/authentication.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ See link:/docs/security/overview[Security Overview] for an high level view of th

JWT Authentication manages the authentication following the link:https://jwt.io[JSON Web Token standard].

The token is verified against the configured `issuer` and `audience` and according to the specified `algorithm`.
The token is verified against the configured `issuer` and `audience` and according to the specified `algorithm`. If you want to disable checking `issuer` or `audience`, set them to `null`. The property `audience` can be `null`, a String or an array of Strings.

The authenticated client will gain the roles included in the JWT claim set by `rolesClaim` or the roles specified by the configuration option `fixedRoles`. It's not possible to set both `rolesClaim` and `fixedRoles`

Supported algorithms are the HMAC256, HMAC384, HMAC512, RSA256, RSA384, RSA512.

Expand All @@ -37,8 +39,6 @@ jwtAuthenticationMechanism:
audience: myAudience
----

It's not possible to set both `rolesClaim` and `fixedRoles`

=== Basic Authentication

**BasicAuthMechanism** manages the Basic Authentication method, where the client credentials are sent via the `Authorization` request header using the format `Authorization: Basic base64(id:pwd)`. The configuration allows specifying the Authenticator that will be used to verify the credentials.
Expand Down

0 comments on commit 61cc85e

Please sign in to comment.