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

Authentication #1

Open
osteth opened this issue Jun 24, 2017 · 4 comments
Open

Authentication #1

osteth opened this issue Jun 24, 2017 · 4 comments

Comments

@osteth
Copy link
Contributor

osteth commented Jun 24, 2017

Hey, just got the listener running. its pretty cool!
I see that there is a logout button on it but there was no login page or anything.
is there a way to enable some sort of authentication?

@nemanjan00
Copy link
Owner

Not yet

@zero77
Copy link

zero77 commented Jan 11, 2019

@nemanjan00 @osteth
This could work, it's simple but, it can provides some authentication:

if (!isset($_SERVER["PHP_AUTH_USER"]) || $_SERVER["PHP_AUTH_PW"] != "SUPER_SECRET_PASSWORD") {
header('WWW-Authenticate: Basic realm="ipMagnet"');
header('HTTP/1.0 401 Unauthorized');
exit();
}

@nemanjan00
Copy link
Owner

One problem :D
This is not written in PHP :D

@zero77
Copy link

zero77 commented Jan 11, 2019

This is not written in PHP :D

Good point, i forgot to check that.

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

3 participants