Package org.zanata.security.openid

Examples of org.zanata.security.openid.OpenIdAuthenticationResult


            // examine the verification result and extract the verified
            // identifier
            Identifier verified = verification.getVerifiedId();
            if (verified != null) {
                authResult = new OpenIdAuthenticationResult();
                authResult.setAuthenticatedId(verified.getIdentifier());
                authResult.setEmail(openIdProvider.getEmail(response)); // Get
                                                                        // the
                                                                        // email
                                                                        // address
View Full Code Here


    @Create
    public void init() {
        manager = new ConsumerManager();
        discovered = null;
        id = null;
        authResult = new OpenIdAuthenticationResult();
        // TODO inject these
        identity =
                ServiceLocator.instance().getInstance(ZanataIdentity.class);
        applicationConfiguration =
                ServiceLocator.instance().getInstance(
View Full Code Here

        this.login(credentials.getUsername(),
                credentials.getOpenIdProviderType(), callback);
    }

    private void login() {
        authResult = new OpenIdAuthenticationResult();
        String returnToUrl = returnToUrl();

        String url = authRequest(id, returnToUrl);

        if (url != null) {
View Full Code Here

TOP

Related Classes of org.zanata.security.openid.OpenIdAuthenticationResult

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.