如何在wso2Is中实现ClaimsRetriever接口

时间:2018-02-21 07:17:23

标签: wso2 wso2is

我需要覆盖DefaultClaimsRetriever的默认行为,为了做到这一点,我实现了ClaimsRetriever接口。 不幸的是,当覆盖ClaimsRetriever时,新类不会编译,因为编译器无法解析IdentityException类。 这些是我定义的依赖项:

<dependencies>
    <dependency>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>org.wso2.carbon.utils</artifactId>
        <version>${org.wso2.carbon.utils.version}</version>
    </dependency>
<dependency>
    <groupId>org.wso2.carbon.identity</groupId>
    <artifactId>org.wso2.carbon.identity.oauth</artifactId>
    <version>${org.wso2.carbon.identity.oauth.version}</version>
    <exclusions>
        <exclusion>
            <artifactId>slf4j.wso2</artifactId>
            <groupId>slf4j</groupId>
        </exclusion>
        <exclusion>
            <artifactId>xml-apis</artifactId>
            <groupId>org.apache.xerces</groupId>
        </exclusion>
        <exclusion>
            <artifactId>xercesImpl</artifactId>
            <groupId>org.apache.xerces</groupId>
        </exclusion>
        <exclusion>
            <artifactId>resolver</artifactId>
            <groupId>org.apache.xerces</groupId>
        </exclusion>
        <exclusion>
            <artifactId>serializer</artifactId>
            <groupId>org.apache.xerces</groupId>
        </exclusion>
    </exclusions>
</dependency>

    <dependency>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>org.wso2.carbon.user.core</artifactId>
        <version>${org.wso2.carbon.user.core.version}</version>
    </dependency>

    <dependency>
        <groupId>org.wso2.carbon.identity.framework</groupId>
        <artifactId>org.wso2.carbon.identity.application.authentication.framework</artifactId>
        <version>${org.wso2.carbon.identity.application.authentication.framework.version}</version>
    </dependency>

    <dependency>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>org.wso2.carbon.logging</artifactId>
        <version>${org.wso2.carbon.logging.version}</version>
    </dependency>

我缺少哪种依赖?

1 个答案:

答案 0 :(得分:0)

尝试org.wso2.carbon.identity.base。