Help for security extension building #32486
-
Hello, I have to plug a quarkus application into a CAS server. Nothing existing match my expectations. For instance, I do not understand clearly what I should send back every method of an HttpAuthenticationMechanism. Is there someone who already works on a quarkus security extension who would be kind to answer my question during a call? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
/cc @sberyozkin (security) |
Beta Was this translation helpful? Give feedback.
-
@smoothdub I can propose for you to request a new |
Beta Was this translation helpful? Give feedback.
-
We are trying to understand why every place containing a lambda is written with a functional interface instead. return context.runBlocking(new Supplier<SecurityIdentity>() {
@Override
public SecurityIdentity get() {
QuarkusSecurityIdentity.Builder builder = QuarkusSecurityIdentity.builder();
return builder.build();
}
}); instead of return context.runBlocking(() -> {
QuarkusSecurityIdentity.Builder builder = QuarkusSecurityIdentity.builder();
return builder.build();
}); Is it for a readability reason or because it is some legacy code? |
Beta Was this translation helpful? Give feedback.
The code involving a lambda is considered to be generally slower compared to the explicit lambda coding (even if the difference can be negligible or none in some cases), but also for the readability reasons, but it is up to the extension implementers which style they may want to use.