diff options
author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2014-06-23 11:46:58 +0200 |
---|---|---|
committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2014-06-23 11:48:15 +0200 |
commit | 60fbf20c8f9017f6f9eb011a0df059bb1ada615c (patch) | |
tree | 3e51a9a9923c167319c5a0823717128f69958d13 /id/server | |
parent | b8cfaa7be28dd0387104e21b7327613593739f89 (diff) | |
download | moa-id-spss-60fbf20c8f9017f6f9eb011a0df059bb1ada615c.tar.gz moa-id-spss-60fbf20c8f9017f6f9eb011a0df059bb1ada615c.tar.bz2 moa-id-spss-60fbf20c8f9017f6f9eb011a0df059bb1ada615c.zip |
isRequireConsentForStorkAttributes() returns true if not found in config
Diffstat (limited to 'id/server')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java index cd3191755..f58fe2495 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java @@ -431,7 +431,14 @@ public List<OAStorkAttribute> getRequestedAttributes() { */ @Override public boolean isRequireConsentForStorkAttributes() { - return oa_auth.getOASTORK().isRequireConsent(); + try{ + return oa_auth.getOASTORK().isRequireConsent(); + }catch(Exception e) + { + e.printStackTrace(); + Logger.warn("isRequireConsentForStorkAttributes() failed, returning default value 'true'"); + return true; + } } /* (non-Javadoc) |