discord-oidc-worker
discord-oidc-worker copied to clipboard
Change user name assigned in Zero Trust
Hi,
I'm not sure if this is outwith your scope, but all my research has drawn ablank. Do you have any idea how to change the "User name" assigned to users with the OIDC worker?
For example, this user has been assigned the username "noreply" based on their e-mail address. How would I go about making their Access username their Discord name?
If you could even just point me in the right direction, that'd be much appreciated.
Thanks,
It's definitely not out of scope because I had the same question when creating this for the first time. I'll keep this issue open to remind me to do more research into this. Currently I am not sure where field that comes from if not the email, but I will check and see if I can find out.
I've figured out a hacky way round it that is fit for my purpose.
If I set the email field to a prefix and then their discord ID at a predetermined email address (e.g. "[email protected]") it's possible for me to use their unique username to do things like SSH short-lived certificates.
I know it's not the best solution but works well for my needs and seems to be the only way around this problem.
I never got an answer to this from the team, and as of June I don't work at Cloudflare anymore so I would be even less likely to get someone from the team to answer on that.
Since the documentation doesn't mention this, is vague in general, and the trouble I had getting an answer even when i worked there, I'm going to assume Cloudflare either doesn't have this feature or doesn't care to document it, and I will consider this impossible to implement correctly on my side without changes by Cloudflare.