From 55645f1d2ef94e1b300932c6d82491994a6cc1ad Mon Sep 17 00:00:00 2001 From: Luca de Alfaro Date: Tue, 29 Aug 2023 22:36:30 -0700 Subject: [PATCH] Luca google scoped login (#805) * Fixed auth enforcer so uses plugins if available * This works * Better doc * Fixed one more case * whoops * Renamed internal members to have a _ in front * Fixed problem with credentials being too long --- py4web/utils/auth_plugins/oauth2google_scoped.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4web/utils/auth_plugins/oauth2google_scoped.py b/py4web/utils/auth_plugins/oauth2google_scoped.py index ba6dd2b98..d67150701 100644 --- a/py4web/utils/auth_plugins/oauth2google_scoped.py +++ b/py4web/utils/auth_plugins/oauth2google_scoped.py @@ -71,7 +71,7 @@ def _define_tables(self): Field('email'), Field('name'), # First and last names, all together. Field('profile_pic'), # URL of profile pic. - Field('credentials') # Credentials for access, stored in Json for generality. + Field('credentials', 'text') # Credentials for access, stored in Json for generality. ])