From 402a2b0596e5e6f6aa059b461e6e77d9315f8d78 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 4 Feb 2014 14:46:30 +0100 Subject: OAuth Fix Update DemoConfig --- .../moa/id/protocols/oauth20/protocol/OAuth20Protocol.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'id/server/idserverlib/src') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/protocol/OAuth20Protocol.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/protocol/OAuth20Protocol.java index 47b81c5ff..00b7a83f0 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/protocol/OAuth20Protocol.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/protocol/OAuth20Protocol.java @@ -8,7 +8,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; -import org.hibernate.annotations.common.util.StringHelper; import at.gv.egovernment.moa.id.auth.exception.MOAIDException; import at.gv.egovernment.moa.id.moduls.IAction; @@ -18,6 +17,7 @@ import at.gv.egovernment.moa.id.protocols.oauth20.OAuth20Constants; import at.gv.egovernment.moa.id.protocols.oauth20.OAuth20Util; import at.gv.egovernment.moa.id.protocols.oauth20.exceptions.OAuth20Exception; import at.gv.egovernment.moa.logging.Logger; +import at.gv.egovernment.moa.util.MiscUtil; import com.google.gson.JsonObject; @@ -115,7 +115,7 @@ public class OAuth20Protocol implements IModulInfo { } } else { String action = request.getParameter("action"); - if (!StringHelper.isEmpty(action)) { + if (MiscUtil.isNotEmpty(action)) { if (action.equals(AUTH_ACTION)) { paramRedirect = request.getParameter(OAuth20Constants.PARAM_REDIRECT_URI); -- cgit v1.2.3