Skip to content

Commit

Permalink
feat: Modify authentication provider to service bean
Browse files Browse the repository at this point in the history
  • Loading branch information
todyDev committed Nov 29, 2018
1 parent e25a86e commit 3bbaf02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions securityPrj/src/main/resources/spring/context-security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
</security:http>

<security:authentication-manager>
<security:authentication-provider ref="userAuthProvider"/>
<security:authentication-provider user-service-ref="userService">
</security:authentication-provider>
</security:authentication-manager>

<bean id="userService" class="tody.common.service.CustomUserDetailsService"/>
<bean id="userAuthProvider" class="tody.common.service.CustomAuthenticationProvider"/>

</beans>

0 comments on commit 3bbaf02

Please sign in to comment.