Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/filter/GGInAFilter.java @ 5933:1b939742629e
Pass LoginServlet's ServletContext to the Authenticators.
When implementing SAML validation we need a way to configure a trusted
key, and passing the ServletContext seems to be about the simplest way
to do this.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 08 May 2013 17:56:13 +0200 |
parents | 172338b1407f |
children | 42b8447fa7ef |
comparison
equal
deleted
inserted
replaced
5932:c7951390fd58 | 5933:1b939742629e |
---|---|
190 | 190 |
191 private Authentication auth(User user, String encoding) | 191 private Authentication auth(User user, String encoding) |
192 throws AuthenticationException, IOException { | 192 throws AuthenticationException, IOException { |
193 Features features = (Features)sc.getAttribute(Features.CONTEXT_ATTRIBUTE); | 193 Features features = (Features)sc.getAttribute(Features.CONTEXT_ATTRIBUTE); |
194 return AuthenticationFactory.getInstance(this.authmethod).auth( | 194 return AuthenticationFactory.getInstance(this.authmethod).auth( |
195 user.getName(), user.getPassword(), encoding, features); | 195 user.getName(), user.getPassword(), encoding, features, sc); |
196 } | 196 } |
197 | 197 |
198 /** | 198 /** |
199 * Returns true if the request is from our machine | 199 * Returns true if the request is from our machine |
200 * @param req The ServletRequest | 200 * @param req The ServletRequest |