Philipp Trulson created SOLR-18323:
--------------------------------------
Summary: When using JWTAuthPlugin, UI is always showing "sub"
value in logout button
Key: SOLR-18323
URL: https://issues.apache.org/jira/browse/SOLR-18323
Project: Solr
Issue Type: Bug
Components: Admin UI, Authentication
Affects Versions: 10.0
Reporter: Philipp Trulson
We just used JWTAuthPlugin for the first time and noticed that in the legacy
Admin UI it now says "Logout 907c9070-b23f-422e-b730-279aa0cf3426" instead of
the actual username, even though we set {{"principalClaim" =
"preferred_username"}} in the config. In the Audit logger logs this works fine,
I can see my username there, but in the UI it just breaks the design.
For most OIDC providers {{sub}} is a stable value that never changes, while
email addresses and usernames can change, so it should never be used in a UI
IMHO. A better approach would be to check for the {{principalClaim}} value in
[login.js|https://github.com/apache/solr/blob/releases/solr/10.0.0/solr/webapp/web/js/angular/controllers/login.js#L150]
and then show the respective value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]