Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/auth/LdapAuthentication.java @ 292:49d0becf3c65
New method to get user name in authentication module.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Aug 2013 16:10:05 +0200 |
parents | 0d3966077415 |
children | 183f8116d9a6 |
comparison
equal
deleted
inserted
replaced
291:1a01e1473dc7 | 292:49d0becf3c65 |
---|---|
175 AuthenticationResponse response = new AuthenticationResponse(); | 175 AuthenticationResponse response = new AuthenticationResponse(); |
176 response.setMst(mst); | 176 response.setMst(mst); |
177 response.setNetzbetreiber(nb); | 177 response.setNetzbetreiber(nb); |
178 return response; | 178 return response; |
179 } | 179 } |
180 | |
181 /** | |
182 * Returns the username specified in the header. | |
183 * | |
184 * @param headers The HTTP header. | |
185 */ | |
186 public String getUserName(HttpHeaders headers) | |
187 throws AuthenticationException { | |
188 return extractUser(headers); | |
189 } | |
180 } | 190 } |