Closed tumido closed 1 year ago
I would like to work on this.
As per my analysis, the displayName is populated using combination of firstName and lastName. The check for displayName being non-empty is in backstage code. Can we populate displayName as username if both firstName and lastName are empty?
@tumido this is a duplicate of https://github.com/janus-idp/backstage-plugins/issues/274
@navinyashende Sorry, I should have noticed this is a duplicate issue. We can actually exclude the displayName
property if firstName
and lastName
are missing because backstage defaults to the username
property if displayName
is undefined
.
@schultzp2020 I see that you have closed your linked PR for #274. Since you are already working on that, can we close this issue?
@navinyashende I'm not currently working on it. I can assign you on the original issue if you'd like. I'll close this issue one you respond.
@schultzp2020 Sounds good to me. Please assign the original issue and close the current one
Describe the bug If a Keycloak user doesn't have BOTH first and last name, the import to Backstage fails
To Reproduce Steps to reproduce the behavior:
yarn workspace @janus-idp/backstage-plugin-keycloak-backend start
http://localhost:8080/admin/master/console/#/janus-realm
will openadmin
username andadmin
passwordExpected behavior User is ingested
Screenshots
Additional context This is a good starting issue for troubleshooting the Keycloak plugin and learning about this repository. Please do not work on this, unless you are getting started around here. 🙂