public static AuthRequest createAuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, RealmVerifier verifier) throws MessageException { return createAuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, returnToUrl, verifier); }
public static AuthRequest createAuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { AuthRequest req = new AuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, realm, verifier); req.validate(); if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding()); return req; }
public static AuthRequest createAuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { AuthRequest req = new AuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, realm, verifier); req.validate(); if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding()); return req; }
public static AuthRequest createAuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { AuthRequest req = new AuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, realm, verifier); req.validate(); if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding()); return req; }
public static AuthRequest createAuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { AuthRequest req = new AuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, realm, verifier); req.validate(); if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding()); return req; }
/** * Gets association. * * @param serverManager the server manager * @return the association */ protected Association getAssociation(final ServerManager serverManager) { try { final AuthRequest authReq = AuthRequest.createAuthRequest(this.parameterList, serverManager.getRealmVerifier()); final Map parameterMap = authReq.getParameterMap(); if (parameterMap != null && !parameterMap.isEmpty()) { final String assocHandle = (String) parameterMap.get(OpenIdProtocolConstants.OPENID_ASSOCHANDLE); if (assocHandle != null) { return serverManager.getSharedAssociations().load(assocHandle); } } } catch (final MessageException me) { LOGGER.error("Message exception : {}", me.getMessage(), me); } return null; }
/** * Gets association. * * @param serverManager the server manager * @param parameterList the parameter list * @return the association */ protected Association getAssociation(final ServerManager serverManager, final ParameterList parameterList) { try { val authReq = AuthRequest.createAuthRequest(parameterList, serverManager.getRealmVerifier()); val parameterMap = authReq.getParameterMap(); if (parameterMap != null && !parameterMap.isEmpty()) { val assocHandle = (String) parameterMap.get(OpenIdProtocolConstants.OPENID_ASSOCHANDLE); if (assocHandle != null) { return serverManager.getSharedAssociations().load(assocHandle); } } } catch (final MessageException e) { LOGGER.error("Message exception : [{}]", e.getMessage(), e); } return null; }
authReq = AuthRequest.createAuthRequest( requestParams, _realmVerifier);
AuthRequest authRequest = AuthRequest.createAuthRequest(parameterList, realmVerifier);
authReq = AuthRequest.createAuthRequest( requestParams, _realmVerifier);
authReq = AuthRequest.createAuthRequest( requestParams, _realmVerifier);
authReq = AuthRequest.createAuthRequest( requestParams, _realmVerifier);
authReq = AuthRequest.createAuthRequest( requestParams, _realmVerifier);
AuthRequest authReq = AuthRequest.createAuthRequest(claimedId, delegate, !discovered.isVersion2(), returnToUrl, handle, realm, _realmVerifier);
returnToUrl = insertConsumerNonce(discovered.getOPEndpoint().toString(), returnToUrl); AuthRequest authReq = AuthRequest.createAuthRequest(claimedId, delegate, ! discovered.isVersion2(), returnToUrl, handle, realm, _realmVerifier);
returnToUrl = insertConsumerNonce(discovered.getOPEndpoint().toString(), returnToUrl); AuthRequest authReq = AuthRequest.createAuthRequest(claimedId, delegate, ! discovered.isVersion2(), returnToUrl, handle, realm, _realmVerifier);
/** * @param openId * @param profileId * @param requredClaims * @return * @throws IdentityProviderException */ public OpenIDClaimDTO[] getClaimValues(String openId, String profileId, OpenIDParameterDTO[] requredClaims) throws IdentityProviderException { List<String> claimList = null; ParameterList paramList = null; AuthRequest authReq = null; String message = "Invalid parameters provided to getClaimValues"; validateInputParameters(new String[] { openId, profileId }, message); try { checkUserAuthorization(OpenIDUtil.getUserName(openId), "getClaimValues"); } catch (MalformedURLException e) { throw new IdentityProviderException("Failed to get username from OpenID " + openId, e); } paramList = getParameterList(requredClaims); try { authReq = AuthRequest .createAuthRequest(paramList, OpenIDProvider.getInstance().getManager().getRealmVerifier()); claimList = getRequestedAttributes(authReq); } catch (MessageException | IdentityException e) { throw new IdentityProviderException("Failed to get requested attribute set", e); } return getOpenIDClaimValues(openId, profileId, claimList); }
/** * @param openId * @param profileId * @param requredClaims * @return * @throws IdentityProviderException */ public OpenIDClaimDTO[] getClaimValues(String openId, String profileId, OpenIDParameterDTO[] requredClaims) throws IdentityProviderException { List<String> claimList = null; ParameterList paramList = null; AuthRequest authReq = null; String message = "Invalid parameters provided to getClaimValues"; validateInputParameters(new String[] { openId, profileId }, message); try { checkUserAuthorization(OpenIDUtil.getUserName(openId), "getClaimValues"); } catch (MalformedURLException e) { throw new IdentityProviderException("Failed to get username from OpenID " + openId, e); } paramList = getParameterList(requredClaims); try { authReq = AuthRequest .createAuthRequest(paramList, OpenIDProvider.getInstance().getManager().getRealmVerifier()); claimList = getRequestedAttributes(authReq); } catch (MessageException | IdentityException e) { throw new IdentityProviderException("Failed to get requested attribute set", e); } return getOpenIDClaimValues(openId, profileId, claimList); }
ParameterList paramList = getParameterList(requredClaims); AuthRequest authReq = AuthRequest.createAuthRequest(paramList, OpenIDProvider.getInstance() .getManager() .getRealmVerifier());
ParameterList paramList = getParameterList(requredClaims); AuthRequest authReq = AuthRequest.createAuthRequest(paramList, OpenIDProvider.getInstance() .getManager() .getRealmVerifier());