You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
our application performs authentication with the servlet spec (HttpSerlvletRequest.login) and we faced the following issue when we tried to upgrade from 1.10.3.Final to 1.11.2.Final:
by fixing issue/13835SecurityIdentityAssociation does not observe SecurityIdentity events anymore (here), so the event fired by the UndertowDeploymentRecorderhere never ends up setting the security identity.
I believe that the UndertowDeploymentRecorder does not need to fire the event anymore and instead it just has to set the SecurityIdentityAssociation's identity via CDI.
Then after grabbing the user information, I set the identity like so inside the @ServerRequestFilter:
delegateSecurityIdentityAssociation.setIdentity(
new SecurityIdentity() {
@Override
public Principal getPrincipal() {
return response::toString;
}
... etc. etc. more methods to override
SecurityIdentity has a bunch of methods you'll need to override, which your IDE should help you generate.
Hello,
our application performs authentication with the servlet spec (HttpSerlvletRequest.login) and we faced the following issue when we tried to upgrade from 1.10.3.Final to 1.11.2.Final:
by fixing issue/13835 SecurityIdentityAssociation does not observe SecurityIdentity events anymore (here), so the event fired by the UndertowDeploymentRecorder here never ends up setting the security identity.
I believe that the UndertowDeploymentRecorder does not need to fire the event anymore and instead it just has to set the SecurityIdentityAssociation's identity via CDI.
The proposed fix can be found here.
The text was updated successfully, but these errors were encountered: