I am using springSecurityService. my flow is as followed: step #1 :springSecurityService should check user & password. if succeeds, step #2: check second authentication. if succeeds, step #3: build roles and log in.
I tried implementing in many ways but no success, can someone please advise? Just to clarify, basically what i need id a two-factor authentication.
Thanks!
step 1:
step 2 :
use s2-quickstart , example :
grails s2–quickstart com.yourapp.security User Role RequestMap
step 3 :
then you can try to login with default form by spring security..
in grails 3.0 + , you can read this
so in grails 3.0+, you will get default
loginController.groovyandUsernamePasswordAuthenticationFilter.groovyby spring securitybut if you use grails 2.0+, you can find
loginController.groovyin root of your controller's folder...and you can find outUsernamePasswordAuthenticationFilter.groovytoo..but i forget that location..you can search it with tools like Intellij or other..