Yicong-Huang opened a new issue, #5428:
URL: https://github.com/apache/texera/issues/5428

   ### Task Summary
   
   Once Dropwizard 4 is in place in amber and the namespace migration is 
complete, replace amber's toastshaman wiring with the in-house 
`org.apache.texera.auth.JwtAuthFilter` that the five microservices already use. 
Concretely:
   
   - `amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala` 
and `ComputingUnitMaster.scala`: replace `setupJwtAuth(environment)` calls with 
the in-house registration pattern (`AuthDynamicFeature(classOf[JwtAuthFilter])` 
+ `UnauthorizedExceptionMapper` + `AuthValueFactoryProvider.Binder` + 
`RolesAllowedDynamicFeature`)
   - Delete `amber/src/main/scala/org/apache/texera/web/auth/JwtAuth.scala`, 
`UserAuthenticator.scala`, `UserRoleAuthorizer.scala`
   - Remove the `com.github.toastshaman:dropwizard-auth-jwt` dependency from 
`amber/build.sbt`
   
   The behavior delta is small but visible: amber's challenge changes from 
`Bearer realm="realm"` to `Bearer realm="texera"`, and invalid-token responses 
gain the `error="invalid_token"` parameter the in-house filter already emits 
for the other services. Closes the unification tracked under #4901.
   
   Part of #5423. Closes #4901 once landed.
   
   ### Task Type
   
   - [x] Refactor / Cleanup


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to