question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get NativeAuthenticator to work

See original GitHub issue

From a default install which worked fine, I did

sudo tljh-config set auth.type nativeauthenticator.NativeAuthenticator
sudo tljh-config reload

That didn’t work (could not log in as admin anymore, and there was no difference in the login screen). The log obtained with journalctl -u jupyterhub does not show anything when attempting to log in.

Lacking logs, I also tried

git clone https://github.com/jupyterhub/nativeauthenticator.git
cd nativeauthenticator
pip install -e .

as instructed at https://native-authenticator.readthedocs.io/en/latest/quickstart.html (in the hope that my install did not work because I simply did not have nativeauthenticator yet). That did not work either, unfortunately.

Any pointers? What is the correct procedure, and how can I get some more logging info out of tljh so I can debug things like this in the future myself? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ibayercommented, Mar 20, 2021

Adding the file /opt/tljh/config/jupyterhub_config.d/native_auth.py allowed me to sign up with admin user admin.

cat /opt/tljh/config/jupyterhub_config.d/native_auth.py 
c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator'
c.Authenticator.admin_users = {'admin'}

To understand why this works I found the following link very helpful: https://tljh.jupyter.org/en/latest/topic/escape-hatch.html#extending-jupyterhub-config-py btw I didn’t have to install NativeAuthenticator separately.

Thanks for providing tljh!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickstart - Native Authenticator documentation
A new user that wants access to a system running NativeAuthenticator must first visit the signup page and create a new account with...
Read more >
jupyterhub/jupyterhub - Gitter
Hi everyone, I am trying to use nativeauthenticator with jupyterhub running on AWS EKS. To enable the same I have added the config...
Read more >
Authenticator - Failed to verify contact [TypeError: Cannot read ...
It looks like this is a known issue: https://github.com/aws-amplify/amplify-js/issues/10711. I was able resolve this by installing the ...
Read more >
Creating an admin user automatically with NativeAuthenticator
I can potentially have the docker container run as root but that can always ... So I've gone back to the original issue...
Read more >
Why is there no native Authenticator app? : r/apple - Reddit
Yeah and it probably won't work well on windows. iCloud Keychain on windows is pathetically bad. I get that they're a competitor, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found