Skip to content

Instantly share code, notes, and snippets.

View minhloc2011's full-sized avatar

Lộc minhloc2011

View GitHub Profile
minhloc2011 / AccessToken.php
Created October 6, 2022 01:08 — forked from onamfc/AccessToken.php
Add Custom Claims to Passport 8 / Laravel 6
View AccessToken.php
namespace App\Passport;
use App\User;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use League\OAuth2\Server\CryptKey;
use Lcobucci\JWT\Signer\Rsa\Sha256;
use Laravel\Passport\Bridge\AccessToken as BaseToken;
View Multiple git

Ở đây ví dụ mình có 2 accounts: 1 cho company, 1 cho mình. Thì mình sẽ config trong .ssh/config như thế này:

#Company account (AT account)
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

#My account (ngot-nuoc account)