diff --git a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/config/OpenApiConfig.kt b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/config/OpenApiConfig.kt index d5fb7ca88..721055d9d 100644 --- a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/config/OpenApiConfig.kt +++ b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/config/OpenApiConfig.kt @@ -71,6 +71,8 @@ class OpenApiConfig( .tokenUrl(securityProperties.tokenUrl) .refreshUrl(securityProperties.refreshUrl) .scopes(Scopes()) + ).clientCredentials( + OAuthFlow().tokenUrl(securityProperties.tokenUrl) ) ) )