Feat: Founding Partner login with autocreation of User, User Role Link, Company, User Company Link as necessary and autologin with new user - for approved Founding Partners only, otherwise redirected to login page.

This commit is contained in:
2025-08-21 18:37:31 +01:00
parent 07543994bf
commit 12f5fc994f
29 changed files with 1843 additions and 324 deletions

View File

@@ -118,9 +118,12 @@ class User(SQLAlchemy_ABC, Base):
@classmethod
def from_json_auth0(cls, json):
_m = f'{cls.__qualname__}.from_json_auth0'
Helper_App.console_log(_m)
Helper_App.console_log(f'JSON: {json}')
user = cls()
if json is None: return user
user_info = json['userinfo']
Helper_App.console_log(f'user_info: {user_info}')
user.id_user = None
user.id_user_auth0 = user_info['sub']
user.firstname = None