Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the auth methods in the README #3

Open
mig5 opened this issue Jan 21, 2021 · 3 comments
Open

Document the auth methods in the README #3

mig5 opened this issue Jan 21, 2021 · 3 comments

Comments

@mig5
Copy link

mig5 commented Jan 21, 2021

Hi,

Thanks for your project.

Right now the README lists a number of authentication methods such as Authorization TOKEN header but it is not clear how to use them.

I looked at the sample .env file and it seems to enforce basic HTTP auth, and I can't figure out how to change this.

Context: I am trying to implement what you did with Upptime per upptime/upptime#54 (reply in thread) but I suspect I need to change the Rauthy configuration to understand the Authentication header being passed through. My vhost looks much like yours on the proxy side..

Any help? Thanks!

@mig5
Copy link
Author

mig5 commented Jan 21, 2021

Also, I am using the Docker method. I can 'set' a user/password with a success message but it still pops up with auth every time, rejecting the password I set.

If I 'download the latest release' (what appears to be named nginx-auth) per your README, I get a fatal error trying it natively after setting the .env

root@server:/opt/rauthy# rauthy user -u mig5 -p test
thread 'main' panicked at 'BASIC_AUTH_USER missing: EnvVar(NotPresent)', src/main.rs:22:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Up-to-date docs will be much appreciated :) Thanks again

@Krakaw
Copy link
Owner

Krakaw commented Jan 21, 2021

Hey, thanks for the feedback, I'll update the docs ASAP and make sure that bug is sorted (I'll also double check the latest release is actually the latest code, I have a sneaky suspicion that it's an old version)

@mig5
Copy link
Author

mig5 commented Jan 21, 2021

Thank you @Krakaw ! Yeah, I ended up going with the Docker version to get/build the latest.. which gave slightly better results (no fatal errors when running rauthy commands inside the container), but still can't get it to work.

Inside the container, I had mixed results trying to write entries to the auth.json - for example running rauthy user -u someuser -p somepass would not write anything to the auth.json (it'd be an empty file), but reversing the parameters rauthy user -p somepass -u someuser would write to the file... strange!

Nonetheless, even after that, I just keep getting the 401 auth popup, so I'm probably doing something wrong still. I was kind of hoping for an option that didn't give an auth pop-up at all, and just pass the Github token parameter along to the Github API for the 'upptime via a private repo' trick..

Much appreciated, I look forward to reading the docs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants