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