Hi all,
I need some guidance in this subject.
I'm trying to add Firebase Authentication, but I don't know if it's possible to link it with Pyramid authentication and authorization policies.
After authentication using Firebase AuthUI I get a user object and a JWT. But then I don't know how to continue:
- I don't know If I have to redirect to some view, with this token as a parameter, use this token to get an user_id and then remember()
- Or If I have to do something with the authentication policy, so it can be done automatically.
- Or maybe creating a custom authentication policy
- Or If I have to use only Firebase, and don't use any auth policy from Pyramid at all
- Or put "Authorization: Bearer token_string" in the header all the time.
- Save 'principals' in Firebase database for authorization
I use traversal and Google datastore, with many roles, role types, and object level security. So I need to use Pyramid authorization policy because it's very powerful.
Thanks