Examples of OpenIdPrincipal


Examples of org.jboss.seam.security.external.openid.api.OpenIdPrincipal

                    @SuppressWarnings("unchecked")
                    Map<String, List<String>> attrValues = fetchResp.getAttributes();
                    attributeValues = attrValues;
                }

                OpenIdPrincipal principal = createPrincipal(identifier.getIdentifier(),
                        discovered.getOPEndpoint(), attributeValues);

                openIdRelyingPartySpi.get().loginSucceeded(principal,
                        responseHandler.createResponseHolder(httpResponse));
            } else {
View Full Code Here

Examples of org.jboss.seam.security.external.openid.api.OpenIdPrincipal

               @SuppressWarnings("unchecked")
               Map<String, List<String>> attrValues = fetchResp.getAttributes();
               attributeValues = attrValues;
            }

            OpenIdPrincipal principal = createPrincipal(identifier.getIdentifier(),
                  discovered.getOPEndpoint(), attributeValues);

            openIdRelyingPartySpi.get().loginSucceeded(principal,
                  responseHandler.createResponseHolder(httpResponse));
         }
View Full Code Here

Examples of org.jboss.seam.security.openid.OpenIdPrincipal

    }

    public boolean loginImmediately() {
        if (authResult.isAuthenticated()) {
            Identity.instance().acceptExternallyAuthenticatedPrincipal(
                    (new OpenIdPrincipal(authResult.getAuthenticatedId())));
            return true;
        }

        return false;
    }
View Full Code Here

Examples of org.jboss.seam.security.openid.OpenIdPrincipal

            if (authenticatedAccount != null
                    && authenticatedAccount.isEnabled()) {
                credentials.setUsername(authenticatedAccount.getUsername());
                Identity.instance().acceptExternallyAuthenticatedPrincipal(
                        (new OpenIdPrincipal(result.getAuthenticatedId())));
                this.loginImmediate();
            }
            // If the user hasn't been registered yet
            else if (authenticatedAccount == null) {
                credentials.setUsername(result.getAuthenticatedId()); // this is
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.