# SSO and gitlab connectivity in TLJH

**URL:** https://discourse.jupyter.org/t/sso-and-gitlab-connectivity-in-tljh/20015
**Category:** The Littlest JupyterHub
**Created:** [June 20, 2023, 7:15am UTC](https://discourse.jupyter.org/t/sso-and-gitlab-connectivity-in-tljh/20015 "2023-06-20T07:15:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SarthakMistry](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@SarthakMistry](https://discourse.jupyter.org/u/SarthakMistry)
#### Post date: [June 20, 2023, 7:15am UTC](https://discourse.jupyter.org/t/sso-and-gitlab-connectivity-in-tljh/20015/1 "2023-06-20T07:15:39Z")

</div>

Hello everyone,  
Wanted to know if there is any way to enable AD SSO with TLJH and if I can automatically store all the code files created by users in a private gitlab repository.

---

<div class="post-metadata">

### Author: ![minrk](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/minrk/32/13_2.png) [@minrk](https://discourse.jupyter.org/u/minrk)
#### Post date: [August 9, 2023, 11:44am UTC](https://discourse.jupyter.org/t/sso-and-gitlab-connectivity-in-tljh/20015/2 "2023-08-09T11:44:55Z")

</div>

I don’t think there’s a ready-made solution to this, but you can use [Spawner.auth\_state\_hook](https://jupyterhub.readthedocs.io/en/stable/reference/api/spawner.html#jupyterhub.spawner.Spawner.auth_state_hook) to load credentials from the user’s auth\_state, e.g. into `spawner.environment`, and then go from there.

Alternately, you could put this info into a volume, if you’re using something like KubeSpawner.
