New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tokenly/tokenpass-client

A Laravel package for applications that wish to use Tokenly Tokenpass for user authentication.
8,458 3
Install
composer require tokenly/tokenpass-client
Latest Version:v3.0.1
PHP:>=7.0.0
License:MIT
Last Updated:Mar 9, 2022
Links: GitHub  ·  Packagist
Maintainer: dweller

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 to App\Repositories\UserRepository.
  • Add the Tokenly\TokenpassClient\Concerns\FindsByTokenpassUuid trait to the UserRepository to implement the lookup by tokenly uuid.
  • run artisan migrate (or artisan migrate --step) to add the necessary fields to the users table
  • make sure config/auth.php points to the currect User model class
  • your User class should implement APIPermissionedUserContract

Related Packages

directorytree/bartender

An opinionated way to authenticate users using Laravel Socialite.

25,346 285
laravel/socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.

133,585,751 5,745
jenssegers/oauth

Laravel OAuth library based on Lusitanian/PHPoAuthLib

18,571 65
liaol/socialite-cn

Laravel wrapper around OAuth 1 & OAuth 2 libraries for Chinese Company.

1,961 47
erfun/socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.

1,479 0

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