added implicit beans

pull/105/merge
Justin Richer 2012-07-05 14:17:29 -04:00
parent 01793ec57f
commit e5eb2e03d8
1 changed files with 4 additions and 10 deletions

View File

@ -52,23 +52,17 @@
<property name="realmName" value="openidconnect" /> <property name="realmName" value="openidconnect" />
</bean> </bean>
<!-- Now using default SECOAUTH token granter -->
<bean id="authCodeTokenGranter" class="org.springframework.security.oauth2.provider.code.AuthorizationCodeTokenGranter">
<constructor-arg name="tokenServices" ref="defaultOAuth2ProviderTokenService"/>
<constructor-arg name="authorizationRequestFactory" ref="authorizationRequestFactory"/>
<constructor-arg name="authorizationCodeServices" ref="authCodeServices"/>
</bean>
<!-- SECOAUTH Authorization Server --> <!-- SECOAUTH Authorization Server -->
<oauth:authorization-server <oauth:authorization-server
client-details-service-ref="defaultOAuth2ClientDetailsEntityService" client-details-service-ref="defaultOAuth2ClientDetailsEntityService"
authorization-request-factory-ref="authorizationRequestFactory"
token-services-ref="defaultOAuth2ProviderTokenService" token-services-ref="defaultOAuth2ProviderTokenService"
token-granter-ref="authCodeTokenGranter"
user-approval-handler-ref="userApprovalHandler" user-approval-handler-ref="userApprovalHandler"
authorization-endpoint-url="/openidconnect/auth" authorization-endpoint-url="/openidconnect/auth"
token-endpoint-url="/openidconnect/token"> token-endpoint-url="/openidconnect/token">
<oauth:authorization-code authorization-code-services-ref="authCodeServices" /> <oauth:authorization-code />
<oauth:implicit />
</oauth:authorization-server> </oauth:authorization-server>