[undertow-dev] AuthenticationMechanism lifecycle
Anil Saldhana
Anil.Saldhana at redhat.com
Mon Dec 16 10:41:32 EST 2013
Right now, I just have a junit test. I set the auth mechanism factory
in the deployment info.
di.addAuthenticationMechanism("FORM" ,
SPFormAuthenticationMechanism.FACTORY);
Irrespective of how it is added, when the deployment start happens,
undertow should try to start
the authentication mechanisms by providing a handle to the servlet
context. The authentication mechanism
may need to read deployment descriptors or set up internal resources.
Regards,
Anil
On 12/16/2013 09:38 AM, Darran Lofthouse wrote:
> How is this authentication mechanism being added?
>
> On 16/12/13 15:33, Anil Saldhana wrote:
>> Hi,
>> can the authentication mechanism have a lifecycle based on the
>> context lifecycle?
>>
>> I need access to the ServletContext to look for deployment descriptors
>> using the servletContext.getResourceAsStream() call.
>>
>> I am thinking something along the lines of:
>>
>> authenticationMechanism.start(ServletContext);
>> authenticationMechanis.stop();
>>
>> This will give an opportunity for the authentication mechanism to
>> initialize and finalize any resources.
>>
>> Regards,
>> Anil
More information about the undertow-dev
mailing list