From 60fbf20c8f9017f6f9eb011a0df059bb1ada615c Mon Sep 17 00:00:00 2001 From: Alexander Marsalek Date: Mon, 23 Jun 2014 11:46:58 +0200 Subject: isRequireConsentForStorkAttributes() returns true if not found in config --- .../at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment') 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 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) -- cgit v1.2.3