Skip to content

Commit

Permalink
Merge pull request #1669 from scprek/fix-1668
Browse files Browse the repository at this point in the history
Fix Kotlin useAuth runtime errors
  • Loading branch information
altro3 authored Aug 5, 2024
2 parents 2e4ce5b + d31a346 commit 018fd5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ open class AuthorizationBinder : AnnotatedClientRequestBinder<Authorization> {
if (annotations.isNotEmpty()) {
val authorizationNames = ArrayList<String>()
for (ann in annotations) {
ann.stringValue("name")
ann.stringValue("value")
.filter{ s -> !s.isNullOrEmpty() }
.ifPresent { v -> authorizationNames.add(configurationName(v)) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {{javaxPackage}}.annotation.Generated
{{>common/generatedAnnotation}}
{{/generatedAnnotation}}
@EachProperty("security.api-key-auth")
data class ApiKeyAuthConfiguration(
data class ApiKeyAuthConfiguration @ConfigurationInject
constructor(
@Parameter override val name: String,
@NonNull var location: AuthKeyLocation,
@NonNull var paramName: String,
Expand Down

0 comments on commit 018fd5c

Please sign in to comment.