Adding Firebase Authentication

30 views
Skip to first unread message

magoarcano

unread,
Jun 3, 2017, 9:13:51 PM6/3/17
to pylons-discuss
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

Jonathan Vanasco

unread,
Jun 4, 2017, 12:44:33 PM6/4/17
to pylons-discuss
There are a handful of JWT packages for Pyramid

This is probably the most used and one of (if not the) best written:

magoarcano

unread,
Jun 4, 2017, 10:57:54 PM6/4/17
to pylons-discuss
Thanks!
Reply all
Reply to author
Forward
0 new messages