Elffuss BraidHub

kikocis/EDC public

main · 1.4 KiBRenderedRawPermalink
1# Authentication Configuration
2
3This extension allows to secure a set of APIs grouped by a web context. It inspects
4all `web.http.<context>` and if the authentication is configured it applies the `AuthenticationRequestFilter`
5to the `<context>` with the chosen `AuthenticationService`. The chosen `AuthenticationService` is currently registered
6in the `ApiAuthenticationRegistry`. This will be removed once the `ApiAuthenticationRegistry` will be refactored out.
7
8## Configuration
9
10| Key | Description | Mandatory |
11|:--------------------------------|:-------------------------------------------------------------------------------------------|-----------|
12| web.http.<context>.auth.type | The type of authentication to apply to the `<context>` | |
13| web.http.<context>.auth.context | Override the name of the context in the `ApiAuthenticationRegistry` instead of `<context>` | |
14
15Depending on the `web.http.<context>.auth.type` chosen, additional properties might be required in order to configure
16the `AuthenticationService`.
17
18Example of a complete configuration for a custom context with token based authentication
19
20```properties
21web.http.custom.path=/custom
22web.http.custom.port=8081
23web.http.custom.auth.type=tokenbased
24web.http.custom.auth.key=apiKey
25```