frengky/laravel-passport-introspect
Composer 安装命令:
composer require frengky/laravel-passport-introspect
包简介
Laravel Passport Introspect Endpoint (RFC 7662)
README 文档
README
Introduction
This package add token introspection endpoint (RFC 7662) for your Laravel Passport OAuth2 implementation.
Requirements
- Laravel Passport 10.x
Installation
- Installing the package
$ composer require frengky/laravel-passport-introspect
- Add the service provider to your
config/app.php
Frengky\PassportIntrospect\ServiceProvider::class
From now on the introspection endpoint route is available to access
POST /api/oauth2/introspect
Example:
curl -X POST -d 'token=hKustjeCOOSXC....' http://localhost/api/oauth2/introspect
Result:
{
"active": true,
"scope": "",
"client_id": "93048e9a-f227-47ad-91f2-9630fd77fe0a",
"sub": "1",
"exp": 1616481476,
"iat": 1616477876,
"nbf": 1616477876,
"aud": [
"93048e9a-f227-47ad-91f2-9630fd77fe0a"
],
"iss": "",
"token_type": "Bearer",
"token_use": "access_token",
"jti": "58eb3b4824891f4621075fbbbbd825fd4bf7c49e9c364d4fa4069ea62fe7b8a043a92bfa278612e6"
}
统计信息
- 总下载量: 984
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-23