diff options
| author | Jonathan Bauer | 2015-07-03 18:47:55 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-07-03 18:47:55 +0200 |
| commit | 66080be14336a7d0b06bc244249fcf0d528ea449 (patch) | |
| tree | 3f5a81734bfea8837efbb4793c5263b805c40fc2 /dozentenmodul/src/main/java/util/ShibbolethECP.java | |
| parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
| download | tutor-module-66080be14336a7d0b06bc244249fcf0d528ea449.tar.gz tutor-module-66080be14336a7d0b06bc244249fcf0d528ea449.tar.xz tutor-module-66080be14336a7d0b06bc244249fcf0d528ea449.zip | |
[client] bwIDM Authentication implemented, yet to be finalized.
Diffstat (limited to 'dozentenmodul/src/main/java/util/ShibbolethECP.java')
| -rw-r--r-- | dozentenmodul/src/main/java/util/ShibbolethECP.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/util/ShibbolethECP.java b/dozentenmodul/src/main/java/util/ShibbolethECP.java index a3e13a38..f3e35400 100644 --- a/dozentenmodul/src/main/java/util/ShibbolethECP.java +++ b/dozentenmodul/src/main/java/util/ShibbolethECP.java @@ -98,8 +98,9 @@ public class ShibbolethECP { * Password as String. * @return * true if login worked, false otherwise. + * @throws ECPAuthenticationException */ - public static ReturnCode doLogin(final String idpUrl, final String user, final String pass) { + public static ReturnCode doLogin(final String idpUrl, final String user, final String pass) throws ECPAuthenticationException { // first lets do some sanity checks if (BWLP_SP == null) { @@ -131,7 +132,7 @@ public class ShibbolethECP { auth.authenticate(); } catch (ECPAuthenticationException e) { LOGGER.error("ECP Authentication Exception, see trace: ", e); - return ReturnCode.ERROR_IDP; + throw e; } // here test again for the SPURL HttpGet testSp = new HttpGet(BWLP_SP); |
