Skip to content

Allow Security Definitions Objects to be defined #471

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

Merged
merged 3 commits into from
Jul 11, 2016
Merged

Allow Security Definitions Objects to be defined #471

merged 3 commits into from
Jul 11, 2016

Conversation

bendodd
Copy link
Contributor

@bendodd bendodd commented Jul 8, 2016

Add securityDefinitions to allow Swagger UI to authenticate

A basic solution for #432

@kzaitsev
Copy link
Contributor

kzaitsev commented Jul 8, 2016

Can you add some specs for this feature? Thanks.

@bendodd
Copy link
Contributor Author

bendodd commented Jul 8, 2016

@Bugagazavr Yep; I didn't purely because the existing authorizations was implemented without

@@ -278,6 +278,8 @@ add_swagger_documentation \
This value is added to the `authorizations` key in the JSON documentation.


#### *security_definitions*:
This value is added to the `securityDefinitions` key in the JSON documentation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe adding the spec #security-definitions-object link,
so that the people have an idea

@LeFnord
Copy link
Member

LeFnord commented Jul 8, 2016

@bendodd … thanks, please add specs to have some usage examples and update the changelog,
think this replaces the authorization key, and is more consistent with the spec #security-definitions-object

@bendodd bendodd changed the title Add securityDefinitions to allow Swagger UI to authenticate Allow Security Definitions Objects to be defined Jul 11, 2016
@bendodd
Copy link
Contributor Author

bendodd commented Jul 11, 2016

@LeFnord Added. Let me know what you think?

@LeFnord
Copy link
Member

LeFnord commented Jul 11, 2016

@bendodd … loos ok to me :) … please run bundle exec rake or bundle exec rubocop before, to see the rubocop warnings and fix them, thanks

@bendodd
Copy link
Contributor Author

bendodd commented Jul 11, 2016

Damn it @LeFnord - that is school boy! Apologies; Fixed...

@LeFnord
Copy link
Member

LeFnord commented Jul 11, 2016

👍 … thanks 😄

@LeFnord LeFnord merged commit c393235 into ruby-grape:master Jul 11, 2016
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
* Add securityDefinitions to allow Swagger UI to authenticate

* Add usage docs and tests for security_definitions

* Fix Rubocop errors #badben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants