@@ -204,7 +204,8 @@ protected function appendGlobalSecurityScheme(): void
204
204
case 'bearer ' :
205
205
$ this ->openApi ['components ' ]['securitySchemes ' ]['bearerAuth ' ] = [
206
206
'type ' => 'http ' ,
207
- 'name ' => config ('request-docs.open_api.security.name ' , 'Bearer Authorization Token ' ),
207
+ 'name ' => config ('request-docs.open_api.security.name ' , 'Bearer Token ' ),
208
+ 'description ' => 'Http Bearer Authorization Token ' ,
208
209
'scheme ' => 'bearer '
209
210
];
210
211
$ this ->openApi ['security ' ][] = [
@@ -215,7 +216,8 @@ protected function appendGlobalSecurityScheme(): void
215
216
case 'basic ' :
216
217
$ this ->openApi ['components ' ]['securitySchemes ' ]['basicAuth ' ] = [
217
218
'type ' => 'http ' ,
218
- 'name ' => config ('request-docs.open_api.security.name ' , 'Basic Authorization Username and Password ' ),
219
+ 'name ' => config ('request-docs.open_api.security.name ' , 'Basic Username and Password ' ),
220
+ 'description ' => 'Http Basic Authorization Username and Password ' ,
219
221
'scheme ' => 'basic '
220
222
];
221
223
$ this ->openApi ['security ' ][] = [
@@ -227,7 +229,8 @@ protected function appendGlobalSecurityScheme(): void
227
229
$ this ->openApi ['components ' ]['securitySchemes ' ]['apiKeyAuth ' ] = [
228
230
'type ' => 'apiKey ' ,
229
231
'name ' => config ('request-docs.open_api.security.name ' , 'api_key ' ),
230
- 'in ' => config ('request-docs.open_api.security.position ' , 'header ' )
232
+ 'in ' => config ('request-docs.open_api.security.position ' , 'header ' ),
233
+ 'description ' => config ('app.name ' ).' Provided Authorization Api Key ' ,
231
234
];
232
235
$ this ->openApi ['security ' ][] = ['apiKeyAuth ' => []];
233
236
break ;
@@ -236,8 +239,9 @@ protected function appendGlobalSecurityScheme(): void
236
239
$ this ->openApi ['components ' ]['securitySchemes ' ]['bearerAuth ' ] = [
237
240
'type ' => 'http ' ,
238
241
'scheme ' => 'bearer ' ,
239
- 'name ' => config ('request-docs.open_api.security.name ' , 'Bearer Authorization Token ' ),
242
+ 'name ' => config ('request-docs.open_api.security.name ' , 'Bearer JWT Token ' ),
240
243
'in ' => config ('request-docs.open_api.security.position ' , 'header ' ),
244
+ 'description ' => 'JSON Web Token ' ,
241
245
'bearerFormat ' => 'JWT '
242
246
];
243
247
$ this ->openApi ['security ' ][] = [
0 commit comments