I’m integrating ServiceStack authentication in my own web app. The flow that I’m trying to implementing is
- Calling Authenticate method of my own AuthProvider
- If the authentication against authRepository returning true, the user will be redirect to another view where he must insert a code. If false it returns Unauthorized
- If the code is ok, then the app make a post authenticate request (with Skip Password Verification if in process)
My question is: which is the best way to redirect the user to the url that he initially has requested? Is it correct get the authentication response in this controller and performing a redirect to action inside the method? I can’t figure out how servicestack works with authenticate attribute