Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User.from_uid method should validate that uid is valid #161

Open
maxkadel opened this issue Nov 22, 2022 · 0 comments
Open

User.from_uid method should validate that uid is valid #161

maxkadel opened this issue Nov 22, 2022 · 0 comments

Comments

@maxkadel
Copy link
Contributor

maxkadel commented Nov 22, 2022

We want administrators to be able to create new users without them having previously logged in, but we also want to verify that the given uid is a valid NetID, and does not have a typo in it.

Implementation notes

It might make sense to connect to the ldap server to verify the UID. See https://github.com/pulibrary/approvals/blob/16fec05410196bc3be689784c4a9e919a110102a/app/services/ldap.rb for a possible example implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant