Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] Sharing configuration between LoginHandler and servlet

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] Sharing configuration between LoginHandler and servlet


Chronological Thread 
  • From: Christopher Bongaarts <>
  • To:
  • Subject: Re: [Shib-Dev] Sharing configuration between LoginHandler and servlet
  • Date: Tue, 07 Dec 2010 15:24:47 -0600
  • Organization: University of Minnesota

Cantor, Scott E. wrote:
I have a configuration item that I want to set once (as an element in
the <LoginHandler> declaration in handler.xml), but need to retrieve the
value from both the LoginHandler and the AuthServlet. What would be the
best way to approach this?

Do you need it in the handler or just the servlet? I put my settings in as
servlet init-params because I had to modify web.xml for a variety of reasons
anyway.

I need it in both - I'm checking the value (an AuthnContext) against the requestedAuthenticationMethods in the LoginHandler in order to determine to which of two RemoteUser servlet endpoints to redirect to, and I need it in the servlet to set the AUTHENTICATION_METHOD_KEY attribute on the way out.

Getting the configuration setting in the LoginHandler is easy, but I'm not sure how best to access it (or arrange to have it passed along).

--
%% Christopher A. Bongaarts %%

%%
%% OIT - Identity Management %% http://umn.edu/~cab %%
%% University of Minnesota %% +1 (612) 625-1809 %%



Archive powered by MHonArc 2.6.16.

Top of Page