Hello everyone. I’ve just deployed the jupyter hub using helm chart, version 3.3.7. I’ve enabled the NativeAuthentictor following the readme of it. This is how the values.yaml
is configured:
hub:
revisionHistoryLimit:
config:
JupyterHub:
admin_access: true
authenticator_class: nativeauthenticator.NativeAuthenticator
NativeAuthenticator:
open_signup: false # Set to false if you want to manually approve users
Authenticator:
admin_users:
- pmesserschmidt
I would like to manually approve new users. I’m able to access the admin page, as admin user, but the “Authorize” sessions does not appear in the U
Also, and when I try to access via url “hub/authorize” the page returns 500 code error and the hub pod logs returns the following error:
[E 2024-07-07 13:21:39.704 JupyterHub web:1875] Uncaught exception GET /hub/authorize/ (::ffff:127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8000', method='GET', uri='/hub/authorize/', version='HTTP/1.1', remote_ip='::ffff:127.0.0.1')
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nativeauthenticator/handlers.py", line 238, in get
UserInfo.change_authorization(self.db, slug)
File "/usr/local/lib/python3.11/site-packages/nativeauthenticator/orm.py", line 82, in change_authorization
user.is_authorized = not user.is_authorized
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'is_authorized'
Base don the log, it seems that that the user that is returned by de sqlite query is empt. Does anyone know how to solve it? Thanks!!