# authentication out of the box

**URL:** <https://support.prodi.gy/t/authentication-out-of-the-box/1775>\
**Category:** Uncategorized\
**Tags:** install, solved, linux\
**Created:** [July 11, 2019, 1:40pm UTC](https://support.prodi.gy/t/authentication-out-of-the-box/1775 "2019-07-11T13:40:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![omrison](https://avatars.discourse-cdn.com/v4/letter/o/b5a626/32.png) [@omrison](https://support.prodi.gy/u/omrison)\
**Post date:** [July 11, 2019, 1:40pm UTC](https://support.prodi.gy/t/authentication-out-of-the-box/1775/1 "2019-07-11T13:40:34Z")

</div>

hi,  
I would like to add authentication capabilities and i am confused since there are some workarounds here in the support forum describing different approaches for authenticating prodigy.

is there a standard (out of the box) authentication for prodigy?  
I could not find this in the readme.html and gettingstarted files.

thanks in advance

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [July 12, 2019, 9:40am UTC](https://support.prodi.gy/t/authentication-out-of-the-box/1775/2 "2019-07-12T09:40:10Z")

</div>

You can set up the basic auth using the environment variables `PRODIGY_BASIC_AUTH_USER` and `PRODIGY_BASIC_AUTH_PASS`. See here for an example:

> [@Multi-user authentication](https://support.prodi.gy/t/multi-user-authentication/1572/4):
>
> @nix411 You should be able to just set the environment variables PRODIGY\_BASIC\_AUTH\_USER and PRODIGY\_BASIC\_AUTH\_PASS on the command line when you run Prodigy. For example: export PRODIGY\_BASIC\_AUTH\_USER=username export PRODIGY\_BASIC\_AUTH\_PASS=supersecret prodigy ner.teach ... # etc.

If you want a fully custom solution, you could also add you own authentication miniservice that asks the user to log in and then starts up the server and redirects them. You can find different approaches for this on the forum.

---

<div class="post-metadata">

**Author:** ![omrison](https://avatars.discourse-cdn.com/v4/letter/o/b5a626/32.png) [@omrison](https://support.prodi.gy/u/omrison)\
**Post date:** [July 15, 2019, 8:31am UTC](https://support.prodi.gy/t/authentication-out-of-the-box/1775/3 "2019-07-15T08:31:02Z")

</div>

thank you.  
can this be set into the .prodigy/prodigy.json file?  
case sensitive?

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [July 16, 2019, 8:17am UTC](https://support.prodi.gy/t/authentication-out-of-the-box/1775/4 "2019-07-16T08:17:32Z")

</div>

No, these are [environment variables](https://www.google.com/search?q=how+to+set+environment+variables). It’s usually best to define usernames and passwords as environment variables when you run a script, and not hard-coded in a JSON file on your machine.
