Examples of OpenIDAuthenticationRequest


Examples of org.wso2.carbon.identity.provider.openid.handlers.OpenIDAuthenticationRequest

            destinationUrl = message.getDestinationUrl(true);
            response.setDestinationUrl(destinationUrl);
            response.setValidated(false);
        } else {
            OpenIDExtension extension = null;
            OpenIDAuthenticationRequest req = null;
            req = new OpenIDAuthenticationRequest();

            if (request.isPhishiingResistanceAuthRequest()) {
                // Relying party requests phishing-resistant login.
                req.setPhishingResistanceLogin(true);
            }
            if (request.isMultiFactorAuthRequested()) {
                // Relying party requests phishing-resistant login.
                req.setMultifactorLogin(true);
            }

            req.setAuthRequest(authReq);

            // A given OpenID authentication request can contain multiple
            // extensions.
            // OpenIDProvider is not aware of extensions - we simply delegate
            // the extension
            // processing logic to a subclass of OpenIDExtension.
            for (Object alias : authReq.getExtensions()) {
                req.setExtensionAlias((String) alias);

                // Get the corresponding OpenIDExtension instance from the
                // OpenIDExtensionFactory.
                extension = OpenIDExtensionFactory.getInstance().getExtension(req);
                if (extension != null) {
View Full Code Here

Examples of org.wso2.carbon.identity.provider.openid.handlers.OpenIDAuthenticationRequest

     * @param authRequest
     * @return
     * @throws IdentityException
     */
    private List<String> getRequestedAttributes(AuthRequest authRequest) throws IdentityException {
        OpenIDAuthenticationRequest req = null;
        OpenIDExtension extension = null;
        List<String> requiredAttributes = null;

        req = new OpenIDAuthenticationRequest();
        req.setAuthRequest(authRequest);
        requiredAttributes = new ArrayList<String>();

        for (Object alias : authRequest.getExtensions()) {
            req.setExtensionAlias((String) alias);
            extension = OpenIDExtensionFactory.getInstance().getExtension(req);
            if (extension != null) {
                extension.addRequiredAttributes(requiredAttributes);
            }
        }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.openid.handlers.OpenIDAuthenticationRequest

        String tenatUser = null;

        try {
            manager = OpenIDProvider.getInstance().getManager();
            authReq = AuthRequest.createAuthRequest(paramList, manager.getRealmVerifier());
            OpenIDAuthenticationRequest req = new OpenIDAuthenticationRequest();
            req.setAuthRequest(authReq);
            setPAPEProperties(req, paramList);
            domainName = TenantUtils.getDomainNameFromOpenId(papeInfoRequestDto.getOpenID());
            tenatUser = UserCoreUtil.getTenantLessUsername(username);

            registry = IdentityTenantUtil.getRegistry(domainName, username);
View Full Code Here

Examples of org.wso2.carbon.identity.relyingparty.ui.openid.OpenIDAuthenticationRequest

     * @throws AxisFault
     */
    public OpenIDAuthenticationRequest getOpenIDAuthInfo(HttpServletRequest request,
            HttpServletResponse response, String dialect) throws AxisFault {
        OpenIDAuthInfoDTO dto = null;
        OpenIDAuthenticationRequest authRequest = null;

        try {
            if(dialect == null) {
                dialect = IdentityConstants.OPENID_SREG_DIALECT;
            }
           
            dto = stub.getOpenIDAuthInfo(dialect);
            authRequest = new OpenIDAuthenticationRequest(request, response);
            if (dto != null) {
                for (String requestType : dto.getRequestTypes()) {
                    authRequest.addRequestType(requestType);
                }
                for (String optionalClaim : dto.getOptionalClaims()) {
                    authRequest.addOptionalClaims(optionalClaim);
                }
                for (String reqClaim : dto.getRequiredClaims()) {
                    authRequest.addRequiredClaims(reqClaim);
                }
                authRequest.setRealm(dto.getRealm());
                authRequest.setRequestClaimsFromIdP(dto.getRequestClaimsFromIdP());
            }
        } catch (Exception e) {
            handleException(" Error while retrieving OpenID login info. " + e.getMessage(), e);
        }
        return authRequest;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.