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

Create authentication method. #9

Open
farinap5 opened this issue Jan 9, 2022 · 0 comments
Open

Create authentication method. #9

farinap5 opened this issue Jan 9, 2022 · 0 comments

Comments

@farinap5
Copy link
Collaborator

farinap5 commented Jan 9, 2022

Authentication Method

The idea is to have the options of configuring a method to authenticate who is requesting determinate endpoint.

Usually this method is by using token that refers a user with some privileges.

Example:

curl http://0.0.0.0/path?user=Laura -H "GToken: XATFbAFAGbaSgGYAgaLYgGANKa"
{"uid":2394,"nome":"Laura","Joined":"02-04-2021 15:10:41"}
curl http://0.0.0.0/path?user=Laura -H "GToken: AAAAAAAAAAAAAAAAAAAAAAAAAA"
{"Error":"Access Denied"}

What would need to be implemented?

This feature would require a hierarchy of users with more specific criteria.

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

1 participant