Comments (2)
Hey, this is an interesting idea. I think it would be difficult parsing every single middleware and guessing which ones are auth and what auth method they use, unless there was some sort of mapping for middleware name => what it means. But I can at least look into supporting this if the app is using Passport and whatever convention it uses. Need to think about this one a little more. Thanks for the suggestion!
from laravel-swagger.
Pushed out a decent solution for this if the consuming application is using Passport: #23 and 463320d. If following the documentation given in: https://laravel.com/docs/5.8/passport including registering the Passport routes and middleware this should correctly generate the securityDefinitions and add the correct scopes to each operation object. Please pull down dev-master
and let me know if that works for you. Feel free to submit a pr if you think you can make any improvements, thanks!
from laravel-swagger.
Related Issues (20)
- Ability to add tags HOT 1
- Ability to add description for parameters HOT 1
- Describe response using API Resource HOT 5
- Multipart for file values HOT 1
- mtrajano/laravel-swagger works for Lumen? HOT 1
- Error: "Your requirements could not be resolved to an installable set of packages" HOT 1
- SuccessResponseGenerator is missing methods HOT 3
- Ability to use custom Router provider HOT 1
- Laravel 7 support HOT 10
- missing --filter in 0.7-dev HOT 2
- Command option --filter is broken
- [Proposal] Get additional middlewares defined on controllers HOT 3
- Laravel 8 installation problem HOT 4
- Can't generate when debugger is present
- Auth option for session based internal API
- ReflectionException : Method Modules\Admin\Http\Controllers\CompanyController::destroy() does not exist
- When using --filter the config option basePath it's ignored
- support or update for laravel 8 HOT 1
- PHP 8 deprecation (ReflectionParameter::getClass())
- How to add parameter description and return value description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-swagger.