app icon indicating copy to clipboard operation
app copied to clipboard

Authentication System

Open tahaghafuri opened this issue 3 years ago • 2 comments

Hi,Please Create Authentication Library For A+ Framework!

tahaghafuri avatar Jan 26 '23 11:01 tahaghafuri

????

tahaghafuri avatar Feb 06 '23 07:02 tahaghafuri

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.

natanfelles avatar Feb 06 '23 21:02 natanfelles