nativeauthenticator icon indicating copy to clipboard operation
nativeauthenticator copied to clipboard

Add a signup hook

Open djangoliv opened this issue 4 years ago • 2 comments

Proposed change

Since the users are not added to the Jupyterhub User table before logging in, it would be nice to be able to associate an action with the signup.

(Optional): Suggest a solution

In the jupyterhub_config.py:

c.Authenticator.post_signup_hook = mySignupAction

Regards

djangoliv avatar Apr 15 '20 09:04 djangoliv

Hello there. I am working on a jupyterhub based application and I am currently managing the users through the native authenticator. Now I need to execute some logic whenever a user registers. Do you think a hook like the one proposed by @djangoliv would be in the scope of this project or should I create another authenticator ? :)

fbessou avatar Apr 22 '20 10:04 fbessou

Another solution would be to expose a service returning the contents of the users_info table.

djangoliv avatar Aug 06 '20 08:08 djangoliv