Package org.geogrid.aist.tsukubagama.services.openid

Examples of org.geogrid.aist.tsukubagama.services.openid.OpenId


                log.debug("Failed login");
                return null;
            }
            if (user.isAuthenticated()) {
                log.debug("user already authenticated");
                return new OpenId(user.getClaimedId());
            }
            if (user.isAssociated() && RelyingParty.isAuthResponse(request)) {
                log.debug("Verify");
                if (_relyingParty.verifyAuth(user, request, null)) {
                    log.debug("authenticated");
                    _relyingParty.invalidate(request, null); // clear
                    return new OpenId(user.getClaimedId());
                } else {
                    log.debug("failed verification");
                    return null;
                }
            }
View Full Code Here


    public UserDescriptor checkAuthentication(
            AuthenticationParameters authParams) throws Exception {
        HttpServletRequest request =
            (HttpServletRequest)authParams.getRequest();

        OpenId openId = relyingPartyManager.verifyOpenIdResponse(request);
        if (openId == null) {
            log.error("Couldn't verify OpenID response");
            return null;
        }

        String username = openId.getClaimedId();
        String subject = relyingPartyManager.getRequestSubject(openId);
        log.info("GET VOMS Proxy for \"" + subject + "\"");

        GSSCredential credential = proxyInit.getVomsProxy(subject);
        User gsUser = gsUserManager.getUserByUserName(username);
View Full Code Here

TOP

Related Classes of org.geogrid.aist.tsukubagama.services.openid.OpenId

Copyright © 2018 www.massapicom. 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.