References to Grails Spring Security Classes - ppazos/cabolabs-ehrserver GitHub Wiki

We need to find these classes when customizing something on for security. This is for quick reference.

The Git links are to master, check there is a 2.x branch in case of working with v2.x :)

GormUserDetailsService https://github.com/grails-plugins/grails-spring-security-core/blob/master/src/main/groovy/grails/plugin/springsecurity/userdetails/GormUserDetailsService.groovy https://grails-plugins.github.io/grails-spring-security-core/v2/guide/userDetailsService.html

GrailsUser https://github.com/grails-plugins/grails-spring-security-core/blob/master/src/main/groovy/grails/plugin/springsecurity/userdetails/GrailsUser.groovy

GrailsUsernamePasswordAuthenticationFilter https://github.com/grails-plugins/grails-spring-security-core/blob/master/src/main/groovy/grails/plugin/springsecurity/web/authentication/GrailsUsernamePasswordAuthenticationFilter.groovy

UsernamePasswordAuthenticationFilter https://github.com/spring-projects/spring-security/blob/master/web/src/main/java/org/springframework/security/web/authentication/UsernamePasswordAuthenticationFilter.java

UsernamePasswordAuthenticationToken http://docs.spring.io/autorepo/docs/spring-security/4.0.3.RELEASE/apidocs/index.html?org/springframework/security/authentication/UsernamePasswordAuthenticationToken.html https://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java

ProviderManager - retrieves an auth provider for the auth token https://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/ProviderManager.java

DaoAuthenticationProvider (implements the auth gettting the user from database) https://docs.spring.io/spring-security/site/docs/current/apidocs/org/springframework/security/authentication/dao/DaoAuthenticationProvider.html https://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/dao/DaoAuthenticationProvider.java

AbstractUserDetailsAuthenticationProvider (implemented by DaoAuthenticationProvider, actually has the username adn password checks on .authenticate()) https://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/dao/AbstractUserDetailsAuthenticationProvider.java