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 System #4

Open
tahaghafuri opened this issue Jan 26, 2023 · 2 comments
Open

Authentication System #4

tahaghafuri opened this issue Jan 26, 2023 · 2 comments

Comments

@tahaghafuri
Copy link

Hi,Please Create Authentication Library For A+ Framework!

@tahaghafuri
Copy link
Author

????

@natanfelles
Copy link
Collaborator

Hello @tahaghafuri !

We plan to create an Auth Library soon, but we don't have the necessary use cases yet.

We plan to use token based, session and ACL.

It is currently possible to authenticate using methods of the Framework\HTTP\Request class.

In a controller you can do this:

$auth = $this->request->getBasicAuth(); // array with username and password keys

or

$auth = $this->request->getBearerAuth(); // array with token key

So just check if the authentication data are in, for example, the database.

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

No branches or pull requests

2 participants