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 for api #19

Closed
dineshraj01 opened this issue Jan 24, 2016 · 2 comments
Closed

Authentication for api #19

dineshraj01 opened this issue Jan 24, 2016 · 2 comments
Assignees

Comments

@dineshraj01
Copy link

How can I authentic a user accessing the api??

@mevdschee mevdschee self-assigned this Jan 24, 2016
@mevdschee
Copy link
Owner

Authentication is not part of the code (as the readme states). If you want to add authentication, then add something like basic authentication (or better). It is explained here:

http://www.phpgang.com/using-http-basic-auth-in-php-the-easy-way_2974.html

The code should be added at the top of the "api.php" file. After authentication you may base your authorization decisions on the logged in user.

Hope that helps, good luck!

@dineshraj01
Copy link
Author

Yeah! Thanks
On Jan 25, 2016 1:19 AM, "Maurits van der Schee" notifications@github.com
wrote:

Authentication is not part of the code (as the readme states). If you want
to add authentication, then add something like basic authentication. It is
explained here:

http://www.phpgang.com/using-http-basic-auth-in-php-the-easy-way_2974.html

The code should be added at the top of the "api.php" file. After
authentication you may base your authorization decisions on the logged in
user.

Hope that helps, good luck!


Reply to this email directly or view it on GitHub
#19 (comment)
.

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

No branches or pull requests

2 participants