Skip to content

Commit

Permalink
Merge pull request #11512 from camptocamp/oidc-user-id
Browse files Browse the repository at this point in the history
The used id is required
  • Loading branch information
sbrunner authored Nov 9, 2024
2 parents 6742877 + 268fb9e commit b891b2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoportal/c2cgeoportal_geoportal/lib/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class DynamicUser(NamedTuple):
User created dynamically.
"""

id: int
username: str
display_name: str
email: str
Expand Down Expand Up @@ -194,6 +195,7 @@ def get_user_from_remember(
models.DBSession.add(user)
else:
user = DynamicUser(
id=-1,
username=username,
display_name=display_name,
email=email,
Expand Down

0 comments on commit b891b2b

Please sign in to comment.