# Updating OAuthenticator for the littlest Jupyter hub

**URL:** <https://discourse.jupyter.org/t/updating-oauthenticator-for-the-littlest-jupyter-hub/11269>\
**Category:** JupyterHub\
**Tags:** jupyterhub, how-to, help-wanted\
**Created:** [October 15, 2021, 11:19pm UTC](https://discourse.jupyter.org/t/updating-oauthenticator-for-the-littlest-jupyter-hub/11269 "2021-10-15T23:19:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ivan/32/5477_2.png) [@ivan](https://discourse.jupyter.org/u/ivan)\
**Post date:** [October 15, 2021, 11:19pm UTC](https://discourse.jupyter.org/t/updating-oauthenticator-for-the-littlest-jupyter-hub/11269/1 "2021-10-15T23:19:32Z")

</div>

Hello everyone,

I’ve encountered the problem with authentication at our JupyterHub. I want to use GitHub auth and restrict access only to members of our organisation. Unfortunately, the littlest jupyter hub uses oauthenicator version 0.10.0, here are the logs I get after reloading Jupyter hub with `sudo tljh-config reload hub` and using `sudo journalctl -u jupyterhub`:

```auto
Oct 15 23:05:15 vm-for-data-team python3[143304]: [I 2021-10-15 23:05:15.983 JupyterHub app:2463] Running JupyterHub version 1.4.0
Oct 15 23:05:15 vm-for-data-team python3[143304]: [I 2021-10-15 23:05:15.984 JupyterHub app:2493] Using Authenticator: oauthenticator.github.GitHubOAuthenticator-0.10.0
Oct 15 23:05:15 vm-for-data-team python3[143304]: [I 2021-10-15 23:05:15.984 JupyterHub app:2493] Using Spawner: traitlets.traitlets.UserCreatingSpawner-5.1.0
Oct 15 23:05:15 vm-for-data-team python3[143304]: [I 2021-10-15 23:05:15.984 JupyterHub app:2493] Using Proxy: jupyterhub_traefik_proxy.toml.TraefikTomlProxy-0+unknown
Oct 15 23:05:15 vm-for-data-team python3[143304]: [I 2021-10-15 23:05:15.994 JupyterHub app:1534] Loading cookie_secret from /opt/tljh/state/jupyterhub_cookie_secret
Oct 15 23:05:16 vm-for-data-team python3[143304]: [W 2021-10-15 23:05:16.030 JupyterHub configurable:193] Config option `allowed_organizations` not recognized by `GitHubOAuthenticator`.

```

Config option `allowed_organizations` is not recognized because it was introduced later than in 0.10.0 version. I tried to update it with `pip install --upgrade oauthenticator`, and when I use `pip freeze` I see the correct upgraded version, but it doesn’t help - when I reload jupyter-hub, it still uses 0.10.0 version.

I’m updating it in the “base” environment which is created by the littlest jupyterhub by default. Maybe I should do it elsewhere?

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [October 18, 2021, 6:14pm UTC](https://discourse.jupyter.org/t/updating-oauthenticator-for-the-littlest-jupyter-hub/11269/2 "2021-10-18T18:14:10Z")

</div>

According to the source code the hub environment is under `/opt/tljh/hub`

> <https://github.com/jupyterhub/the-littlest-jupyterhub/blob/4d5f20de14771060afb518bb376d72ccf94435d5/tljh/config.py#L29-L30>

---

<div class="post-metadata">

**Author:** ![ivan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ivan/32/5477_2.png) [@ivan](https://discourse.jupyter.org/u/ivan)\
**Post date:** [October 19, 2021, 4:15pm UTC](https://discourse.jupyter.org/t/updating-oauthenticator-for-the-littlest-jupyter-hub/11269/3 "2021-10-19T16:15:11Z")

</div>

Thanks a lot, I used `/opt/tljh/hub/bin/python -m pip install --upgrade oauthenticator` and it solved my problem.
