session.setAttribute("openid_identifier", authSuccess.getIdentity());
/** * Verifies the dicovery information matches the data received in a * authentication response from an OpenID Provider. * * @param authResp The authentication response to be verified. * @param discovered The discovery information obtained earlier during * the discovery stage, associated with the * identifier(s) in the request. Stateless operation * is assumed if null. * @return The discovery information associated with the * claimed identifier, that can be used further in * the verification process. Null if the discovery * on the claimed identifier does not match the data * in the assertion. */ private DiscoveryInformation verifyDiscovered(AuthSuccess authResp, DiscoveryInformation discovered) throws DiscoveryException { if (authResp == null || authResp.getIdentity() == null) { _log.info("Assertion is not about an identifier"); return null; } if (authResp.isVersion2()) return verifyDiscovered2(authResp, discovered); else return verifyDiscovered1(authResp, discovered); }
/** * Verifies the dicovery information matches the data received in a * authentication response from an OpenID Provider. * * @param authResp The authentication response to be verified. * @param discovered The discovery information obtained earlier during * the discovery stage, associated with the * identifier(s) in the request. Stateless operation * is assumed if null. * @return The discovery information associated with the * claimed identifier, that can be used further in * the verification process. Null if the discovery * on the claimed identifier does not match the data * in the assertion. */ private DiscoveryInformation verifyDiscovered(AuthSuccess authResp, DiscoveryInformation discovered) throws DiscoveryException { if (authResp == null || authResp.getIdentity() == null) { _log.info("Assertion is not about an identifier"); return null; } if (authResp.isVersion2()) return verifyDiscovered2(authResp, discovered); else return verifyDiscovered1(authResp, discovered); }
/** * Verifies the dicovery information matches the data received in a * authentication response from an OpenID Provider. * * @param authResp The authentication response to be verified. * @param discovered The discovery information obtained earlier during * the discovery stage, associated with the * identifier(s) in the request. Stateless operation * is assumed if null. * @return The discovery information associated with the * claimed identifier, that can be used further in * the verification process. Null if the discovery * on the claimed identifier does not match the data * in the assertion. */ private DiscoveryInformation verifyDiscovered(AuthSuccess authResp, DiscoveryInformation discovered) throws DiscoveryException { if (authResp == null || authResp.getIdentity() == null) { _log.info("Assertion is not about an identifier"); return null; } if (authResp.isVersion2()) { return verifyDiscovered2(authResp, discovered); } else { return verifyDiscovered1(authResp, discovered); } }
/** * Verifies the dicovery information matches the data received in a * authentication response from an OpenID Provider. * * @param authResp The authentication response to be verified. * @param discovered The discovery information obtained earlier during * the discovery stage, associated with the * identifier(s) in the request. Stateless operation * is assumed if null. * @return The discovery information associated with the * claimed identifier, that can be used further in * the verification process. Null if the discovery * on the claimed identifier does not match the data * in the assertion. */ private DiscoveryInformation verifyDiscovered(AuthSuccess authResp, DiscoveryInformation discovered) throws DiscoveryException { if (authResp == null || authResp.getIdentity() == null) { _log.info("Assertion is not about an identifier"); return null; } if (authResp.isVersion2()) return verifyDiscovered2(authResp, discovered); else return verifyDiscovered1(authResp, discovered); }
/** * Verifies the dicovery information matches the data received in a * authentication response from an OpenID Provider. * * @param authResp The authentication response to be verified. * @param discovered The discovery information obtained earlier during * the discovery stage, associated with the * identifier(s) in the request. Stateless operation * is assumed if null. * @return The discovery information associated with the * claimed identifier, that can be used further in * the verification process. Null if the discovery * on the claimed identifier does not match the data * in the assertion. */ private DiscoveryInformation verifyDiscovered(AuthSuccess authResp, DiscoveryInformation discovered) throws DiscoveryException { if (authResp == null || authResp.getIdentity() == null) { _log.info("Assertion is not about an identifier"); return null; } if (authResp.isVersion2()) return verifyDiscovered2(authResp, discovered); else return verifyDiscovered1(authResp, discovered); }
session.setAttribute("openid_identifier", authSuccess.getIdentity());
session.setAttribute("openid_identifier", authSuccess.getIdentity());
session.setAttribute("openid_identifier", authSuccess.getIdentity());
session.setAttribute("openid_identifier", authSuccess.getIdentity());
authResp.getIdentity() == null ) String assertId = authResp.getIdentity();
OpenIDUserDTO userDTO = new OpenIDUserDTO(); userDTO.getParams().put(OpenIDUserDTO.OPENID_IDENTIFIER, authSuccess.getIdentity()); userDTO.getParams().put(OpenIDUserDTO.EMAIL_FROM_SREG, sregResp.getAttributeValue("email")); OpenIDUserData dbUser = findOpenIdUser(authSuccess.getIdentity()); if (dbUser != null) { userDTO.setLocale(dbUser.getLocale());
authResp.getIdentity() == null || authResp.getClaimed() == null) String assertId = authResp.getIdentity();
loggedInSessionBean.getOpenId().setClaimedId(authSuccess.getIdentity()); if (ssoAgentConfig.getOpenId().getAttributesRequestor() != null) { attributesRequestor = ssoAgentConfig.getOpenId().getAttributesRequestor(); String[] attrArray = attributesRequestor.getRequestedAttributes(authSuccess.getIdentity()); FetchResponse fetchResp = (FetchResponse) authSuccess.getExtension(AxMessage.OPENID_NS_AX); for (String attr : attrArray) { List attributeValues = fetchResp.getAttributeValuesByTypeUri(attributesRequestor.getTypeURI(authSuccess.getIdentity(), attr)); if (attributeValues.get(0) instanceof String && ((String) attributeValues.get(0)).split(",").length > 1) { String[] splitString = ((String) attributeValues.get(0)).split(",");
loggedInSessionBean.getOpenId().setClaimedId(authSuccess.getIdentity()); if (ssoAgentConfig.getOpenId().getAttributesRequestor() != null) { attributesRequestor = ssoAgentConfig.getOpenId().getAttributesRequestor(); String[] attrArray = attributesRequestor.getRequestedAttributes(authSuccess.getIdentity()); FetchResponse fetchResp = (FetchResponse) authSuccess.getExtension(AxMessage.OPENID_NS_AX); for (String attr : attrArray) { List attributeValues = fetchResp.getAttributeValuesByTypeUri(attributesRequestor.getTypeURI(authSuccess.getIdentity(), attr)); if (attributeValues.get(0) instanceof String && ((String) attributeValues.get(0)).split(",").length > 1) { String[] splitString = ((String) attributeValues.get(0)).split(",");
String[] attrArray = attributesRequestor.getRequestedAttributes(authSuccess.getIdentity()); FetchResponse fetchResp; try { String claimUri = attributesRequestor.getTypeURI(authSuccess.getIdentity(), attr); List attributeValues = fetchResp.getAttributeValuesByTypeUri(claimUri);
String[] attrArray = attributesRequestor.getRequestedAttributes(authSuccess.getIdentity()); FetchResponse fetchResp; try { String claimUri = attributesRequestor.getTypeURI(authSuccess.getIdentity(), attr); List attributeValues = fetchResp.getAttributeValuesByTypeUri(claimUri);
new OpenIDLifecycleEvent(OpenIDLifecycleEvent.TYPE.SESSION, OpenIDLifecycleEvent.OP.ADD, CONST.OPENID.get(), authSuccess.getIdentity()),
new OpenIDLifecycleEvent(TYPE.SESSION, OP.ADD, CONST.OPENID.get(), authSuccess.getIdentity()),
new OpenIDLifecycleEvent(TYPE.SESSION, OP.ADD, CONST.OPENID.get(), authSuccess.getIdentity()),