comparison flys-client/src/main/java/de/intevation/flys/client/server/LoginServlet.java @ 2972:6266dff93ed2

Use servlet context to specify the authentication method. Using the servlet context allows to set the method globally and not only for one servlet. flys-client/trunk@4968 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 13 Jul 2012 07:50:22 +0000
parents b89dd09b486c
children 06d999e95615
comparison
equal deleted inserted replaced
2971:229c34d6e87b 2972:6266dff93ed2
74 } 74 }
75 } 75 }
76 76
77 private Authentication auth(String username, String password, String encoding) 77 private Authentication auth(String username, String password, String encoding)
78 throws AuthenticationException, IOException { 78 throws AuthenticationException, IOException {
79 String auth = this.getInitParameter("authentication"); 79 String auth = this.getServletContext().getInitParameter("authentication");
80 return AuthenticationFactory.getInstance(auth).auth(username, password, encoding); 80 return AuthenticationFactory.getInstance(auth).auth(username, password, encoding);
81 } 81 }
82 } 82 }

http://dive4elements.wald.intevation.org