Hello,
I have some questions about creating a custom HttpAuthenticationMechanism.
Some background: we’re migrating from Wildfly 17 to Wildfly 26 and need to create custom security realms. Along with that, we need a custom authentication mechanism to support identifying users either from a JWT token or from trusted header information when an SSL session is not established.
Our older authentication mechanism is an implementation of Undertow’s AuthenticationMechanism interface, but it is my understanding that we need to migrate to an implementation of Wildfly’s HttpAuthenticationMechanism to be compatible with Elytron.
Question 1: Is my understanding there correct? Is it generally necessary to migrate from Undertow’s authentication mechanism APIs to Wildfly’s when interfacing with Elytron?
Question 2: Is there a way to obtain the request start time in the custom HttpAuthenticationMechanism from the supplied HttpServerRequest instance? In Undertow’s AuthenticationMechanism, the HttpServerExchange argument supports the following:
long requestStartTime = exchange.getRequestStartTime();
We gather this information to track certain metrics about requests submitted to our systems. I didn’t see an equivalent method for the HttpServerRequest class, and would like to know if there’s a way to get the request start time in some other manner.
Question 1: Is my understanding there correct? Is it generally necessary to migrate from Undertow’s authentication mechanism APIs to Wildfly’s when interfacing with Elytron?
Question 2: Is there a way to obtain the request start time in the custom HttpAuthenticationMechanism from the supplied HttpServerRequest instance? In Undertow’s AuthenticationMechanism, the HttpServerExchange argument supports the following:
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/3f48fa88-c77d-401b-b500-31d6bd9a8c82n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/0e694dbe-b6cd-440e-b53a-5e3f230780ffn%40googlegroups.com.