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