Skip to content
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

Fix Kotlin useAuth runtime errors #1669

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

scprek
Copy link
Contributor

@scprek scprek commented Aug 1, 2024

Fixes: #1668

I'm having a hard time figuring out the best way to test Client Auth. These bugs do not happen until you populate your application configuration and things

  1. fail to load when you specify ApiKeyAuthConfiguration due to the NoBeanError
  2. Doesn't find your tokens because the Authorization Class in Kotlin doesn't have a name member. I tried to do the alias thing like in the Java version, but I couldn't get it working.

Note: Followed guide for Immutable Data class option https://docs.micronaut.io/latest/guide/index.html#immutableConfig

@altro3
Copy link
Collaborator

altro3 commented Aug 5, 2024

@graemerocher Can't merge it :-( Haven't rights

@altro3
Copy link
Collaborator

altro3 commented Aug 5, 2024

oh, sorry, it's still not approved

@altro3 altro3 merged commit 018fd5c into micronaut-projects:6.12.x Aug 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kotlin Client gen with Auth creates incorrect AuthorizationBinder and ApiKeyAuthConfiguration
2 participants