-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issue
Description
Expected Behavior
When using OIDC authentication with Google and Tomcat, I expect to be able to log in successfully.
The Micronaut Guide SECURE A MICRONAUT APPLICATION WITH GOOGLE was followed, and the server was changed from netty to tomcat, and this fails.
This seems similar to
#239
which includes links to
#256
#275
Actual Behaviour
The callback URL fails with the following exception
ERROR i.m.http.server.RouteExecutor - Unexpected error occurred: Error instantiating bean of type [io.micronaut.security.oauth2.endpoint.authorization.response.DefaultOpenIdAuthorizationResponse]: Error decoding request body: Stream closed
This works fine with Netty.
Steps To Reproduce
- download the java/gradle micronaut guide sample from here.
- configure google client id/secret per your google console
- start and test the app to authenticate
- observe success
- edit build.gradle and change micronaut.runtime from 'netty' to 'tomcat', and add
implementation("io.micronaut.servlet:micronaut-http-server-tomcat")
- restart the app and test to authenticate
- observe the stack trace
Environment Information
- macOS Sonoma
- azul 21 jdk
Example Application
Download the java/gradle micronaut guide sample from here.
Version
4.4.0
Metadata
Metadata
Assignees
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issue