META-INF.leap.framework.beans.oauth2_server.xml Maven / Gradle / Ivy
<?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"> <!-- config --> <bean type="leap.oauth2.server.OAuth2AuthzServerConfig" class="leap.oauth2.server.DefaultOAuth2AuthzServerConfig" primary="true"> <additional-type-def type="leap.oauth2.server.OAuth2AuthzServerConfigurator" primary="true"/> </bean> <bean type="leap.web.AppListener" class="leap.oauth2.server.OAuth2ServerAutoConfig"/> <!-- store --> <bean type="leap.oauth2.server.store.AuthzInMemoryStore" class="leap.oauth2.server.store.DefaultAuthzInMemoryStore" primary="true"/> <bean name="jdbc" type="leap.oauth2.server.client.AuthzClientStore" class="leap.oauth2.server.store.DefaultJdbcAuthzClientStore"/> <bean name="jdbc" type="leap.oauth2.server.token.AuthzTokenStore" class="leap.oauth2.server.store.DefaultJdbcAuthzTokenStore"/> <bean name="jdbc" type="leap.oauth2.server.code.AuthzCodeStore" class="leap.oauth2.server.store.DefaultJdbcAuthzCodeStore"/> <bean name="jdbc" type="leap.oauth2.server.sso.AuthzSSOStore" class="leap.oauth2.server.store.DefaultJdbcAuthzSSOStore"/> <!-- client --> <bean type="leap.oauth2.server.client.AuthzClientManager" class="leap.oauth2.server.client.DefaultAuthzClientManager" primary="true"/> <bean type="leap.oauth2.server.client.AuthzClientValidator" class="leap.oauth2.server.client.DefaultAuthzClientValidator" primary="true"/> <bean type="leap.oauth2.server.client.AuthzClientAuthenticator" class="leap.oauth2.server.client.DefaultAuthzClientAuthenticator" primary="true"/> <!-- authorization code --> <bean type="leap.oauth2.server.code.AuthzCodeManager" class="leap.oauth2.server.code.DefaultAuthzCodeManager" primary="true"/> <bean type="leap.oauth2.server.code.AuthzCodeGenerator" class="leap.oauth2.server.code.UUIDAuthzCodeGenerator" primary="true"/> <!-- token --> <bean type="leap.oauth2.server.token.TokenExtractor" class="leap.oauth2.server.token.DefaultTokenExtractor" primary="true"/> <bean type="leap.oauth2.server.endpoint.token.GrantTokenManager" class="leap.oauth2.server.endpoint.token.DefaultGrantTokenManager" primary="true"/> <bean type="leap.oauth2.server.token.AuthzTokenManager" class="leap.oauth2.server.token.DefaultAuthzTokenManager" primary="true"/> <bean type="leap.oauth2.server.OAuth2AuthzServerErrorHandler" class="leap.oauth2.server.DefaultOAuth2AuthzServerErrorHandler" primary="true"/> <bean name="uuid" type="leap.oauth2.server.token.AuthzAccessTokenGenerator" class="leap.oauth2.server.token.UUIDAuthzTokenGenerator" primary="true"> <additional-type-def type="leap.oauth2.server.token.AuthzRefreshTokenGenerator" name="uuid" primary="true"/> </bean> <!-- jwks endpoint --> <bean name="jwkEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.JwkEndpoint"/> <bean name="jwksEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.JwksEndpoint"/> <bean name="defaultJwks" type="leap.oauth2.server.endpoint.jwks.JwksToken" class="leap.oauth2.server.endpoint.jwks.DefaultJwksToken" primary="true"/> <bean name="oauth2PublicKey" type="leap.oauth2.server.endpoint.jwks.JwkToken" class="leap.oauth2.server.endpoint.jwks.OAuth2RSAJwkToken"/> <!-- oauth2 standard endpoints --> <bean name="tokenEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.TokenEndpoint"/> <bean name="authorizationEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.AuthorizationEndpoint"/> <bean name="tokenInfoEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.TokenInfoEndpoint"/> <!-- authorize endpoint : response types --> <bean name="code" type="leap.oauth2.server.endpoint.authorize.ResponseTypeHandler" class="leap.oauth2.server.endpoint.authorize.CodeResponseTypeHandler"/> <bean name="token" type="leap.oauth2.server.endpoint.authorize.ResponseTypeHandler" class="leap.oauth2.server.endpoint.authorize.TokenResponseTypeHandler"/> <!-- token endpoint : grant types --> <bean name="refresh_token" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.RefreshTokenGrantTypeHandler"/> <bean name="password" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.PasswordGrantTypeHandler"/> <bean name="client_credentials" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.ClientCredentialsGrantTypeHandler"/> <bean name="client_secret_basic" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.ClientSecretBasicGrantTypeHandler"/> <bean name="client_secret_post" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.ClientSecretPostGrantTypeHandler"/> <bean name="authorization_code" type="leap.oauth2.server.endpoint.token.GrantTypeHandler" class="leap.oauth2.server.endpoint.token.CodeGrantTypeHandler"/> <!-- token info endpoint : handlers --> <bean type="leap.oauth2.server.endpoint.tokeninfo.TokenInfoHandler" class="leap.oauth2.server.endpoint.tokeninfo.DefaultTokenInfoHandler"/> <bean name="default" type="leap.oauth2.server.endpoint.tokeninfo.TokenInfoResponseHandler" class="leap.oauth2.server.endpoint.tokeninfo.DefaultTokenInfoResponseHandler"/> <!-- logout endpoint : handlers --> <bean type="leap.oauth2.server.endpoint.logout.PostLogoutHandler" class="leap.oauth2.server.endpoint.logout.DefaultPostLogoutHandler" primary="true"/> <!-- public key endpoint --> <bean type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.PublicKeyEndpoint"/> <!-- openid connect : common --> <bean type="leap.oauth2.server.openid.IdTokenGenerator" class="leap.oauth2.server.openid.JwtIdTokenGenerator" primary="true"/> <!-- open id connect : logout endpoint --> <bean name="logoutEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.LogoutEndpoint"/> <!-- open id connect : authorization endpoint extension --> <bean name="id_token" type="leap.oauth2.server.endpoint.authorize.ResponseTypeHandler" class="leap.oauth2.server.endpoint.authorize.IdTokenResponseTypeHandler"/> <bean name="code id_token" type="leap.oauth2.server.endpoint.authorize.ResponseTypeHandler" class="leap.oauth2.server.endpoint.authorize.CodeIdTokenResponseTypeHandler"/> <bean name="id_token token" type="leap.oauth2.server.endpoint.authorize.ResponseTypeHandler" class="leap.oauth2.server.endpoint.authorize.IdTokenTokenResponseTypeHandler"/> <!-- sso --> <bean type="leap.oauth2.server.sso.AuthzSSOManager" class="leap.oauth2.server.sso.DefaultAuthzSSOManager" primary="true"/> <!-- session refresh endpoint --> <bean name="sessionRefreshEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.SessionRefreshEndpoint"/> <!-- userinfo endpoint: --> <bean name="userInfoEndpoint" type="leap.web.Endpoint" class="leap.oauth2.server.endpoint.UserInfoEndpoint"/> <!-- userinfo endpoint : handlers --> <bean name="userInfoHandler" type="leap.oauth2.server.endpoint.userinfo.UserInfoHandler" class="leap.oauth2.server.endpoint.userinfo.DefaultUserInfoHandler"/> <!-- AuthzAuthentication Manager --> <bean type="leap.oauth2.server.authc.AuthzAuthenticationManager" class="leap.oauth2.server.authc.DefaultAuthzAuthenticationManager" primary="true"/> <!-- app listener --> <bean type="leap.web.AppListener" class="leap.oauth2.server.OAuth2ServerListener"/> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy