tokenly/tokenpass-client
A Laravel package for applications that wish to use Tokenpass for user authentication.
Installation
Add the Laravel package via composer
composer require tokenly/tokenpass-client
Configuration
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
Additional Installation Steps
- follow the tokenly/laravel-api-provider installation steps
- The application container must resolve the interface
TokenpassUserRespositoryContract. It defaults toApp\Repositories\UserRepository. - Add the
Tokenly\TokenpassClient\Concerns\FindsByTokenpassUuidtrait to the UserRepository to implement the lookup by tokenly uuid. - run
artisan migrate(orartisan migrate --step) to add the necessary fields to the users table - make sure
config/auth.phppoints to the currectUsermodel class - your
Userclass should implementAPIPermissionedUserContract
Related Packages
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v3.0.1 | >=7.0.0 | MIT | |
| v3.0.0 | >=7.0.0 | MIT | |
| v2.0.7 | >=7.0.0 | MIT | |
| v2.0.6 | >=7.0.0 | MIT | |
| v2.0.5 | >=7.0.0 | MIT | |
| v2.0.4 | >=7.0.0 | MIT | |
| v2.0.3 | >=7.0.0 | MIT | |
| v2.0.2 | >=7.0.0 | MIT | |
| v2.0.1 | >=7.0.0 | MIT | |
| v2.0.0 | >=7.0.0 | MIT | |
| v1.3.0 | >=5.5.0 | MIT | |
| v1.2.5 | >=5.5.0 | MIT | |
| v1.2.4 | >=5.5.0 | MIT | |
| v1.2.3 | >=5.5.0 | MIT | |
| v1.2.2 | >=5.5.0 | MIT | |
| v1.2.1 | >=5.5.0 | MIT | |
| v1.2.0 | >=5.5.0 | MIT | |
| v1.1.1 | >=5.6.0 | MIT | |
| v1.1.0 | >=5.6.0 | MIT | |
| v1.0.2 | >=5.5.0 | MIT | |
| v0.4.2 | >=5.5.0 | MIT | |
| v0.4.1 | >=5.6.0 | MIT | |
| v0.4.0 | >=5.6.0 | MIT | |
| v0.3.0 | >=5.5.0 | MIT | |
| v0.2.1 | >=5.5.0 | MIT | |
| v0.2.0 | >=5.5.0 | MIT |