GoogleCloudPlatform / appengine-java-standard

Google App Engine Standard Java runtime: Prod runtime, local devappserver, Cloud SDK Java components, GAE APIs, and GAE API emulators.
Apache License 2.0
197 stars 45 forks source link

Issue #241 - fix deferred authentication for Java21 EE10 runtime #243

Closed lachlan-roberts closed 4 months ago

lachlan-roberts commented 4 months ago

closes #241

If request.getUserPrincipal() was being called on a request with deferred authentication, then authentication was failing.

This is because the isDeferred check in EE10AppEngineAuthentication was in the wrong place.

ludoch commented 4 months ago

Code fix is now checked in. Will reach prod end of next week or next (due to 4rth of July break in US). Meanwhile, you can try following for the next few days https://github.com/GoogleCloudPlatform/appengine-java-standard/blob/main/TRYLATESTBITSINPROD.md from head (Sorry, Maven only, gradle contribution welcome).