控制器中的
* @OA\SecurityScheme(
*
* type="http",
* in="header",
* name="token",
* scheme="bearer",
* securityScheme="bearerAuth",
* bearerFormat="JWT"
* )
生成的配置数据
components:
securitySchemes:
bearerAuth:
type: http
name: token
in: header
bearerFormat: JWT
scheme: bearer
接收到的 header 信息
["authorization"]=>
array(1) {
[0]=>
string(13) "Bearer 123123"
}
我期望接收到 header 信息是
["token"]=>
array(1) {
[0]=>
string(13) "123123"
}
1
Oa 2019-11-18 09:37:49 +08:00
0.0 我竟然被 @了
|