The local accounts realm takes responsibility for authenticating users whom have usernames and passwords that are stored in the local Nimble database. The logic for this realm is located at grails.plugins.nimble.core.LocalizedRealm for authentication purposes the important method is authenticate. This realm operates on the token type org.apache.shiro.authc.UsernamePasswordToken which is generated by the AuthController during login form submission. For LocalizedRealm the authentication process is:
If all the above is valid a session is established for the user and they are allowed to continue. Failure at any stage results in an appropriate exception being thrown. |