github-team-sync icon indicating copy to clipboard operation
github-team-sync copied to clipboard

If `USER_SYNC_ATTRIBUTE=email` why is `OKTA_USERNAME_ATTRIBUTE` required/used?

Open seanorama opened this issue 1 year ago • 2 comments

In the Okta provider the sample .env states:

## The attribute which corresponds to the GitHub Username
## NOTE: This cannot be an email address
OKTA_USERNAME_ATTRIBUTE=github_username

If the user can be determined by email lookup from git, earlier in the .env:

## Attribute to compare users with
## username or email
USER_SYNC_ATTRIBUTE=email

Why is the git username needed, when you have the email and ability to look up the username from that?

seanorama avatar Mar 29 '23 03:03 seanorama