-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/32591 authenticate #16
Conversation
develop branch workflow
…error-responses use actual problem json in wiremock responses
publish release and develop changes. Updates logback configuration
Snapshot increase
…oll source directories (as before) in case events are not available
…stem-events-instead-of-polling-in-filesystems-that-support-events #37649 use filesystem events to trigger file upload when available, p…
…pload once at startup; per-execution polling logs are now on level DEBUG
…stem-events-instead-of-polling-in-filesystems-that-support-events #37649 only log which directories are being polled for documents to u…
…fest-after-main-class-renaming Fixed wrong name of start class in SpringBoot uber jar
Release/3.1.0
Release/3.1.1
…n-implementation-as-a-temp-fix Disable check for noop span implementation.
Release/3.1.2
…media-type #37791 cdr-api no longer requires the version as part of the content …
src/main/kotlin/com/swisscom/health/des/cdr/clientvm/msal4j/LocalhostHttpClient.kt
Fixed
Show fixed
Hide fixed
src/main/kotlin/com/swisscom/health/des/cdr/clientvm/config/CdrClientContext.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/swisscom/health/des/cdr/clientvm/handler/FileHandlingBase.kt
Outdated
Show resolved
Hide resolved
this[AZURE_TRACE_ID_HEADER] = traceId | ||
this.build() | ||
// TODO: Remove this check once the token is required | ||
val accessToken = if(cdrClientConfig.idpCredentials.tenantId != DEFAULT_TENANT_ID) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could return the token string from getAccessToken()
, use an empty string in the else
case and then test for isNotBlank
to decide whether you should add the bearer token authZ header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that would mean that we called the token service with some wrong data. If we already know that we don't want to call it then I'd rather not do it.
No description provided.