Examples of doOpenIdSignUp()


Examples of org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager.doOpenIdSignUp()

                                      new Permission[] { permission });
                }
                userStore.addUser(username, password, new String[]{IdentityConstants.IDENTITY_DEFAULT_ROLE}, null, null);
                IdentityPersistenceManager manager = IdentityPersistenceManager.getPersistanceManager();
                registry = IdentityRPServiceComponent.getRegistryService().getConfigSystemRegistry(tenantId);
                manager.doOpenIdSignUp(registry, userRealm, openId.getOpenID(), username);
                this.addUserClaims(username, firstName, lastName, email, tenantId);
            }
           
//            MessageContext msgCtx = MessageContext.getCurrentMessageContext();
//
View Full Code Here

Examples of org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager.doOpenIdSignUp()

    private boolean doOpenIDSignUp(String userName, String openId) throws Exception {
        IdentityPersistenceManager manager = IdentityPersistenceManager.getPersistanceManager();
        String domain = TenantUtils.getDomainNameFromOpenId(openId);
        Registry registry = IdentityTenantUtil.getRegistry(domain, userName);
        UserRealm realm = IdentityTenantUtil.getRealm(domain, userName);
        return manager.doOpenIdSignUp(registry, realm, openId, userName);
    }

    private void addUserClaims(String userName, String firstName, String lastName,
                               String emailAddress, int tenantId) throws Exception {
        try {
View Full Code Here

Examples of org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager.doOpenIdSignUp()

        // OpenId Sign-Up if necessary.
        if (user.getOpenID() != null) {
            IdentityPersistenceManager persistentManager = IdentityPersistenceManager
                    .getPersistanceManager();
            persistentManager.doOpenIdSignUp(registry, realm, user.getOpenID(), user.getUserName());
        }

    }

    public void addUserWithInfoCard(InfoCarDTO infoCard) throws Exception {
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.