Skip to content

Commit 4ccdf5d

Browse files
Use display_username from identity if it is set via OIDC (#41)
1 parent aadfdd0 commit 4ccdf5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qwc2_viewer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def qwc2_config(self, identity, params):
275275
# NOTE: ignore group from identity
276276
autologin = identity.get('autologin')
277277

278+
if self.display_user_info_field:
279+
display_username = identity.get(self.display_user_info_field)
280+
278281
if self.db_url:
279282
# add custom user info fields
280283
db = db_engine.db_engine(self.db_url)

0 commit comments

Comments
 (0)