# How to authenticate Jupyterhub user in the backend via my own web application

**URL:** <https://discourse.jupyter.org/t/how-to-authenticate-jupyterhub-user-in-the-backend-via-my-own-web-application/8734>\
**Category:** JupyterHub\
**Created:** [April 12, 2021, 4:57am UTC](https://discourse.jupyter.org/t/how-to-authenticate-jupyterhub-user-in-the-backend-via-my-own-web-application/8734 "2021-04-12T04:57:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhartih](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bhartih](https://discourse.jupyter.org/u/bhartih)\
**Post date:** [April 12, 2021, 4:57am UTC](https://discourse.jupyter.org/t/how-to-authenticate-jupyterhub-user-in-the-backend-via-my-own-web-application/8734/1 "2021-04-12T04:57:42Z")

</div>

I am building the web application using Python-Flask. I want to authenticate JupyterHub user via my own web application without showing the login page. On other word, on click of button in my application, the JupyterHub user should be authenticated in the backend of my application and then the user should be able to access the JupyterHub notebook directly.

---

<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:** [April 12, 2021, 10:51am UTC](https://discourse.jupyter.org/t/how-to-authenticate-jupyterhub-user-in-the-backend-via-my-own-web-application/8734/2 "2021-04-12T10:51:29Z")

</div>

a custom LoginHandler that reads a cookie or header set by your application would be the way to do that, as described [in this related discussion](https://discourse.jupyter.org/t/need-guidance-on-setting-up-hub-sidecar-container/8658/7).
