用户管理服务WSO2身份服务器

用户管理服务WSO2身份服务器,wso2,axis2,wso2is,wsdl2java,Wso2,Axis2,Wso2is,Wsdl2java,我正在使用Wso2 Identity server并使用其管理服务创建用户。我的问题是这些用户无法登录到系统。 下面是我们正在使用的LIB org.wso2.carbon.identity.framework org.wso2.carbon.identity.mgt.stub 5.6.14 org.wso2.carbon org.wso2.carbon.utils 4.4.10 薛西斯 干细胞移植 杰克森 干细胞移植 com.ibm.icu icu4j org.wso2.carbon.ident

我正在使用Wso2 Identity server并使用其管理服务创建用户。我的问题是这些用户无法登录到系统。 下面是我们正在使用的LIB org.wso2.carbon.identity.framework org.wso2.carbon.identity.mgt.stub 5.6.14 org.wso2.carbon org.wso2.carbon.utils 4.4.10 薛西斯 干细胞移植 杰克森 干细胞移植 com.ibm.icu icu4j org.wso2.carbon.identity.user.ws org.wso2.carbon.um.ws.api.stub 5.1.3 公用记录 公用记录 org.wso2.carbon.identity.framework org.wso2.carbon.identity.user.registration.stub 5.6.14 org.wso2.carbon.identity.framework org.wso2.carbon.user.mgt.stub 5.6.14


WSO2中管理服务所需的权限为,您可以在此处找到[1]


[1]

您是否正在尝试使用创建的用户登录Identity Server管理控制台?如果是,则该用户需要具有登录权限的角色。此链接[1]可能对您有所帮助。[1] 不,用户将登录到OAuth应用程序。我已经分配了这些角色。和权限。为了登录到控制台,您需要登录权限。您能否验证您分配给角色的角色是否包含权限hi@thusitathilinadayaratne我不希望该用户登录到管理控制台。我希望该用户登录OAuth 2应用程序。我可以创建用户,但这些用户无法登录OAuth应用程序。创建新角色并为OAuth分配所需的权限(根据上述文档)。之后,将角色分配给用户。我也这样做,但用户无法登录,然后我跟随一个链接,并对身份管理配置进行了一些更改,这些更改对我有效。:)谢谢
    <dependency>
        <groupId>org.apache.axis2.wso2</groupId>
        <artifactId>axis2</artifactId>
        <version>1.6.1.wso2v12</version>
    </dependency>
    <dependency>
        <groupId>org.apache.ws.commons.axiom.wso2</groupId>
        <artifactId>axiom</artifactId>
        <version>1.2.11.wso2v10</version>
    </dependency>
    <!-- <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> 
        </dependency> -->
    <dependency>
        <groupId>org.wso2.carbon.identity.framework</groupId>
        <artifactId>org.wso2.carbon.identity.user.profile.stub</artifactId>
        <version>5.6.14</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wso2.carbon.identity.agent.sso.java</groupId>
        <artifactId>org.wso2.carbon.identity.sso.agent</artifactId>
        <version>5.1.3</version>
        <exclusions>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.wso2.orbit.org.opensaml</groupId>
                <artifactId>opensaml</artifactId>
            </exclusion>
        </exclusions>
    </dependency>


    <dependency>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-spring</artifactId>
        <version>1.6.1-wso2v12</version>
    </dependency>

    <dependency>
        <groupId>org.wso2.orbit.org.opensaml</groupId>
        <artifactId>opensaml</artifactId>
        <version>2.6.4.wso2v3</version>
    </dependency>
String[] roles = {"Application/myOAunth", "Internal/everyone"};
    ClaimValue sub = new ClaimValue();
    sub.setClaimURI("sub");
    sub.setValue(userSignUpRequest.getFirstName());
    ClaimValue fullName = new ClaimValue();
    fullName.setClaimURI("http://wso2.org/claims/fullname");
    fullName.setValue(userSignUpRequest.getFirstName() + " " + userSignUpRequest.getLastName());
    ClaimValue firstName = new ClaimValue();
    firstName.setClaimURI("http://wso2.org/claims/givenname");
    firstName.setValue(userSignUpRequest.getFirstName());
    ClaimValue email = new ClaimValue();
    email.setClaimURI(" http://wso2.org/claims/emailaddress");
    email.setValue(userSignUpRequest.getFirstName());
    ClaimValue accountDisabled = new ClaimValue();
    accountDisabled.setClaimURI("http://wso2.org/claims/identity/accountDisabled");
    accountDisabled.setValue("false");
    ClaimValue[] claims = {fullName, sub, accountDisabled, firstName};
    try {
      admin.addUser(userSignUpRequest.getEmailId(), userSignUpRequest.getPassword(), roles, claims, "default");
    } catch (AxisFault e) {
      throw new GenericException(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR.value());
    }