# Demo.launch(auth=("admin", "pass1234"))

**URL:** <https://discuss.huggingface.co/t/demo-launch-auth-admin-pass1234/30163>\
**Category:** Spaces\
**Created:** [January 22, 2023, 2:09pm UTC](https://discuss.huggingface.co/t/demo-launch-auth-admin-pass1234/30163 "2023-01-22T14:09:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAS17](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@GAS17](https://discuss.huggingface.co/u/GAS17)\
**Post date:** [January 22, 2023, 2:09pm UTC](https://discuss.huggingface.co/t/demo-launch-auth-admin-pass1234/30163/1 "2023-01-22T14:09:16Z")

</div>

hello, is it possible to add authentication to gradio in hugginface spaces?  
this is an example that is in the gradio documentation: demo.launch(auth=(“admin”, “pass1234”))

It does not work for me

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [January 22, 2023, 4:09pm UTC](https://discuss.huggingface.co/t/demo-launch-auth-admin-pass1234/30163/2 "2023-01-22T16:09:56Z")

</div>

Hi @GAS17 !

It’s a known issue with gradio!

We’re working on it.

Thank you
