ternaris / marv

THIS REPOSITORY HAS BEEN MERGE INTO
https://github.com/ternaris/marv-robotics
GNU Affero General Public License v3.0
3 stars 4 forks source link

basic auth with uwsgi #15

Closed chaoflow closed 6 years ago

chaoflow commented 6 years ago

Migrated from https://github.com/ternaris/marv-robotics-nodes/issues/12

I just wanted to leave this here for other's reference. It should probably make it at some point into the setup documentation.

With bagbunker I configured apache with basic_auth for the whole site, to prevent anyone from viewing the datasets. Note that since all of this is in the Bosch intranet, I'm not too worried about malicious attackers and thus not using SSL is fine for now.

Something similar can be done with uwsgi even easier. Simply adding the following line to uwsgi.conf will get you started with the most basic form of adding http basic auth to the whole marv robotics site:

route = .* basicauth:Marv Robotics,username:password
chaoflow commented 6 years ago

basic auth is not supported anymore with marv as it interferes with the authorization header used by marv's oauth. See #37 for an alternative to basic auth.