Package Data | |
---|---|
Maintainer Username: | dweller |
Maintainer Contact: | devon@tokenly.com (Devon Weller) |
Package Create Date: | 2015-09-05 |
Package Last Update: | 2022-03-09 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:13:46 |
Package Statistics | |
---|---|
Total Downloads: | 8,380 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 6 |
Total Forks: | 7 |
Total Open Issues: | 0 |
A Laravel package for applications that wish to use Tokenpass for user authentication.
composer require tokenly/tokenpass-client
Install the views by running this command:
artisan tokenpass:make-auth
Set the following environment variables. You will need a client id and client secret generated by Tokenpass.
TOKENPASS_CLIENT_ID="123456789"
TOKENPASS_CLIENT_SECRET=Kyours3c4etKeYH3re23mste0xmPdSja36aXLd02
TOKENPASS_PROVIDER_HOST=https://tokenpass.tokenly.com
TokenpassUserRespositoryContract
. It defaults to App\Repositories\UserRepository
.Tokenly\TokenpassClient\Concerns\FindsByTokenpassUuid
trait to the UserRepository to implement the lookup by tokenly uuid.artisan migrate
(or artisan migrate --step
) to add the necessary fields to the users tableconfig/auth.php
points to the currect User
model classUser
class should implement APIPermissionedUserContract