pow-auth / pow_assent

Multi-provider authentication for your Pow enabled app
https://powauth.com
MIT License
318 stars 50 forks source link

In which case is `add_user_id` Controller called? #202

Closed dyzdyz010 closed 3 years ago

dyzdyz010 commented 3 years ago

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.

dyzdyz010 commented 3 years ago

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.