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

Pre-create user table in an external system #138

Open
jbwl opened this issue Mar 5, 2025 · 0 comments
Open

Pre-create user table in an external system #138

jbwl opened this issue Mar 5, 2025 · 0 comments

Comments

@jbwl
Copy link
Contributor

jbwl commented Mar 5, 2025

Would it be possible to create users from data that exists in an internal system? In a company application, I have a list of users with usernames and passwords. I am not allowed to transfer the clear text passwords to the machine where the Rails app with authentication-zero is.
So my idea is to create the users table on the intranet with all the encrypted secrets and transfer that data to the web application.

I guess I would have to set up a second Rails application on the intranet that creates all the users, by using the same secret base key in order for the Web application to be able to decrypt the secrets like password_digest, otp_secret, and webauthn_id? And then I would need a way to bulk create the users from the external data.

I am wondering what would be needed to make sure authentication-zero can use the users table that was created in a different rails app. Only the same secret key base? Anything else?

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

No branches or pull requests

1 participant