-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export authSchemes and securityDefinitions #65
Comments
From @JonnyBGod on May 10, 2016 20:9 It would be perfect if it was possible to easily integrate with loopback-component-oauth2 |
From @richardpringle on August 11, 2016 19:1 @JonnyBGod, should this be in loopback-swagger/issues? |
From @gunjpan on October 11, 2016 20:10 @JonnyBGod : Could you please post this issue in the correct place as shown above? |
@JonnyBGod I'm going to help move this issue over to the repo mentioned by @gunjpan and @richardpringle. Please add a better description of your issue there. I'll add a template you can edit there. |
|
Bug or feature request
Description of feature (or steps to reproduce if bug)The lib should generate swagger 2 Security Definitions Object. http://swagger.io/specification/#securityDefinitionsObject This would enable the usage of proper authentication in swagger generated documentation pages such as http://petstore.swagger.io/. (check "Authorize" button) Expected result
Additional information (Node.js version, LoopBack version, etc) |
I believe the easiest way to configure this would be to enable the developer to configure the spec in |
Hey there, Is someone able to tell me if this feature is coming soon cause I need to find a way to expose my scopes required for each method in my swagger.json ? If no, do you have another way to expose the scope in the swagger.json ? |
I have a work-in-progress that supports this (for my application). Still needs automated tests, but the results work perfectly in http://editor.swagger.io/#!/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an important issue for me to be resolved. |
According to strongloop/loopback-component-explorer#209 (comment), we need to support authorization metadata in order to be able to use the latest version of Swagger UI. |
Continuing my OAuth2 work: I created tasks on each of what is left open (as far as I can see). This is definitely targeting Loopback 2/3 projects, and working in an OAuth2 application we've rolled out. |
@drmikecrowe Would you be willing to make a PR from the mergeable parts of exporting |
Closing as stale. |
From @JonnyBGod on May 10, 2016 20:6
We should be able to export auth specifications with swagger spec.
At least make it easy to hardcode it in options.
Copied from original issue: strongloop/loopback-component-explorer#162
The text was updated successfully, but these errors were encountered: