Elffuss BraidHub

kikocis/EDC public

main · 1.2 KiBRenderedRawPermalink
1# Management API Configuration
2
3This module provides central configuration for all Management APIs, i.e. the `ManagementApiConfiguration`, which
4currently only contains the context alias, which all the Management API controllers should be registered under.
5
6Further, this module registers an `AuthenticationRequestFilter` and an `EdcApiExceptionMapper` in the same context.
7
8## Configurations
9
10Exemplary configuration:
11
12```properties
13web.http.management.port=9191
14web.http.management.path=/api/v1/management
15web.http.port=8181
16web.http.path=/api
17```
18
19Please note that since a specific context is registered (here: `management`), then the default one **must** be registered
20explicitly!
21
22_Caution: failing to provide a `web.http.management.port` and `web.http.management.path` configuration will cause
23the `AuthenticationRequestFilter` and `EdcApiExceptionMapper` to be registered in the _default_ context causing it to
24fire for EVERY request on that context including IDS communication._
25
26## Authentication
27
28If you want to secure the Management API, you need to provide a module which implements the `AuthenticationService`
29interface (e.g. `:extensions:common:auth:auth-tokenbased` or `:extensions:common:auth:auth-basic`).