All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.leap.framework.beans.oauth2_webapp.xml Maven / Gradle / Ivy

There is a newer version: 0.7.13b
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.leapframework.org/schema/beans"
       if-servlet-environment="true"
       if-class-present="leap.web.security.SecurityConfig">

    <!-- common -->
    <bean type="leap.web.security.SecurityInterceptor"
          class="leap.oauth2.rs.OAuth2ResServerSecurityInterceptor"/>

    <bean type="leap.oauth2.rs.OAuth2ResServerConfig"
          class="leap.oauth2.rs.DefaultOAuth2ResServerConfig" primary="true">

        <additional-type-def type="leap.oauth2.rs.OAuth2ResServerConfigurator" primary="true"/>

    </bean>

    <if expr="null != properties['oauth2.enabled']">
        <bean type="leap.web.AppListener" class="leap.oauth2.rs.OAuth2ResServerAutoConfig"/>
    </if>

    <bean type="leap.oauth2.rs.OAuth2ResServerErrorHandler"
          class="leap.oauth2.rs.DefaultOAuth2ResServerErrorHandler" primary="true"/>

    <!-- auth -->
    <bean type="leap.oauth2.rs.auth.ResCredentialsAuthenticator"
          class="leap.oauth2.rs.auth.DefaultResCredentialsAuthenticator" primary="true"/>

    <!-- token -->
    <bean type="leap.oauth2.rs.token.ResTokenManager"
          class="leap.oauth2.rs.token.DefaultResTokenManager" primary="true"/>

    <bean name="bearer"
          type="leap.oauth2.rs.token.ResAccessTokenExtractor"
          class="leap.oauth2.rs.token.ResBearerAccessTokenExtractor" primary="true"/>

    <bean name="remote"
          type="leap.oauth2.rs.token.ResBearerAccessTokenStore"
          class="leap.oauth2.rs.token.RemoteBearerResAccessTokenStore"/>

    <bean name="jwt"
          type="leap.oauth2.rs.token.ResBearerAccessTokenStore"
          class="leap.oauth2.rs.token.JwtBearerResAccessTokenStore">
    </bean>

    <bean type="leap.oauth2.wac.OAuth2WebAppConfig"
          class="leap.oauth2.wac.DefaultOAuth2WebAppConfig" primary="true">

        <additional-type-def type="leap.oauth2.wac.OAuth2WebAppConfigurator" primary="true"/>

    </bean>

    <bean type="leap.oauth2.wac.token.WacTokenManager"
          class="leap.oauth2.wac.token.DefaultWacTokenManager" primary="true"/>

    <bean type="leap.oauth2.wac.auth.WacResponseHandler"
          class="leap.oauth2.wac.auth.DefaultWacResponseHandler" primary="true"/>

    <bean name="jdbc"
          type="leap.oauth2.wac.token.WacTokenStore"
          class="leap.oauth2.wac.token.JdbcWacTokenStore"/>

    <bean type="leap.web.security.SecurityInterceptor" class="leap.oauth2.wac.OAuth2WebAppSecurityInterceptor"/>

    <!-- userinfo -->
    <bean type="leap.oauth2.webapp.user.UserDetailsLookup" class="leap.oauth2.webapp.user.DefaultUserDetailsLookup" primary="true"/>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy