-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It appears that Swagger-UI correctly sets an authorization header when added in the interface (api key field). However, if the endpoint has the option "authorizations" set with "oauth2", it will override the value. See #13.
- Loading branch information
Sunny Juneja
committed
Aug 19, 2015
1 parent
c7a512e
commit fdb02c4
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
GrapeSwaggerRails.options.url = '/api/swagger_doc' | ||
GrapeSwaggerRails.options.app_name = 'Swagger' | ||
GrapeSwaggerRails.options.app_url = 'http://localhost:3000' | ||
GrapeSwaggerRails.options.api_auth = 'bearer' | ||
GrapeSwaggerRails.options.api_key_name = 'Authorization' | ||
GrapeSwaggerRails.options.api_key_type = 'header' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters