I'm setting up a custom strategy by copying and modifying oauth2's code. It can auth user correctly, but when the auth is complete and callback method is called, it jumps to my homepage directly with new user inserted to the database, but never redirect to /auth/:provider/add-user-id route, seems the registration process is bypassed.
Found the issue, it's add-user-id controller who redirected to homepage. Only not assigning user_id_field in the callback can lead to add_user_id.html page. Sorry for the disturbance.
I'm setting up a custom strategy by copying and modifying oauth2's code. It can auth user correctly, but when the auth is complete and
callback
method is called, it jumps to my homepage directly with new user inserted to the database, but never redirect to/auth/:provider/add-user-id
route, seems the registration process is bypassed.