Elffuss BraidHub

kikocis/EDC public

main · 1004 BRenderedRawPermalink
1# Basic authentication
2
3This extension provides a `AuthenticationService` implementation for basic authentication. This module will be active
4if you provide at least one credential pair.
5
6## Usage/Example
7
8In your `Vault` instance you have to provide the password for each user. You can put them under any key you want, but we
9would recommend using the following key format:
10
11```plain
12api-basic-auth-<USERNAME>
13```
14
15Regarding the keys you have to provide in your EDC configuration the vault key for each user:
16
17```properties
18edc.api.auth.basic.usera: api-basic-auth-usera
19edc.api.auth.basic.userb: api-basic-auth-userb
20```
21
22To use this module e.g. together with the Management API and Azure Vault just have to include the following into
23your `build.gradle.kts`:
24
25```kotlin
26dependencies {
27 implementation(project(":extensions:common:vault:vault-azure"))
28 implementation(project(":extensions:common:auth:auth-basic"))
29 implementation(project(":extensions:control-plane:api:management-api"))
30}
31```