Commit Graph

234 Commits

Author SHA1 Message Date
Tony Tam
f386054a53 Merge pull request #2568 from tobigun/showOperationIds
Add option "showOperationIds"
2017-01-02 13:46:39 -07:00
Tony Tam
353c8a39c5 updated swagger-js, rebuilt 2017-01-02 11:08:45 -07:00
Tobias Gunkel
26d8aced96 Add option "showOperationIds" 2016-12-18 23:20:13 +01:00
Joe Littlejohn
90f641059f On complete, ignore fragments that don't contain useful information
Auth providers like Facebook and Google tend to add garbage fragments
onto OAuth 2.0 redirect URIs to stop malicious fragments being
maintained through the flow. This change ensures that those fragments
aren't mistakenly used to attempt to complete login.

If the fragment contains a code, token or error, it is assumed to be the
correct place to find data provided by the auth provider.
2016-11-27 17:16:10 +00:00
Tony Tam
0dfc59fc21 Merge pull request #2489 from joelittlejohn/patch-1
Avoid using Facebook garbage fragment to complete login
2016-11-23 20:16:01 -08:00
Tony Tam
81e897a07a checks for window 2016-11-14 11:34:50 -08:00
Joe Littlejohn
1b18429eca Avoid using Facebook garbage fragment to complete login
Facebook adds a nonsense fragment to all redirect URIs when returning a code. This stops a fragments being surreptitiously passed through the authorization flow.

See http://stackoverflow.com/questions/7131909/facebook-callback-appends-to-return-url

Before this change, the presence of Facebook's garbage fragment would break the Swagger UI complete page, as having any fragment value at all will cause the complete page to ignore the query string. This change avoids using the fragment if it looks to be useless.
2016-11-07 14:58:13 +00:00
Chuck Goss
87ef5c1f72 Fix font src attribute
The `format('truetype')` bit should not be preceded by a comma. It breaks in Chrome (at least).

See https://css-tricks.com/snippets/css/using-font-face/ for an example.
2016-09-28 15:21:46 -05:00
Anna Bodnia
a1aea70f2c fixed tag xss issue 2016-08-23 18:26:50 +03:00
Tony Tam
aa31d9a24e Merge pull request #2293 from PeterDaveHelloKitchen/image-optimize
optimize png images using zopflipng
2016-08-10 13:43:09 +02:00
Tony Tam
d3bf3b9a63 updated in source 2016-08-10 13:33:25 +02:00
Anna Bodnia
20daf3c79e added version into handlebars file name 2016-08-09 14:55:01 +03:00
Anna Bodnia
6a00aa8e98 Merge branch 'feature/issue-2306_' of /Users/bodnia/Documents/work/prj/swagger-ui with conflicts. 2016-08-08 19:12:11 +03:00
Peter Dave Hello
08402d297e optimize png images using zopflipng 2016-07-22 14:27:44 +08:00
Tony Tam
515f142026 merged 2016-07-20 19:05:38 -07:00
Josh Ponelat
5a5967e4b3 add object-assign pollyfill, for travis 2016-05-10 18:00:24 +02:00
Tony Tam
a67722e870 Merge pull request #2099 from oddvar/safari-font-fix
Without this "," Safari fails to load the font
2016-05-02 21:48:36 -07:00
Christopher Bunting
ceb6655663 Fixes overflow issue for markdown code examples 2016-04-22 12:03:25 -07:00
Oddvar Lovaas
183c67a7c5 Without this "," Safari fails to load the font 2016-04-18 18:04:41 +01:00
Tony Tam
6c8b7ec75c disabled alpha sorter 2016-03-21 17:49:46 -07:00
Tony Tam
3bad381042 removed unused code 2016-03-21 17:46:58 -07:00
bodnia
dfd9b10798 [auth] fixed display of scopes in auth button, added highlight of empty field 2016-03-15 17:13:59 +02:00
bodnia
fe9a497b9d [auth] moved parse method into collection 2016-03-13 10:24:00 +02:00
bodnia
0f77177455 [auth] UI changes 2016-03-13 00:52:47 +02:00
bodnia
1e38c8999b [auth] UI changes 2016-03-11 19:02:56 +02:00
Anna Bodnia
23332b1310 [auth] moved authorizations into the header 2016-03-07 21:15:16 +02:00
Anna Bodnia
0934129424 [auth] fixed base spec url 2016-03-07 21:15:14 +02:00
Anna Bodnia
42be315276 [auth] Added api key and basic authorization 2016-03-07 21:15:14 +02:00
Anna Bodnia
1861ac27ca [auth] moved logout buttons into authentication view 2016-03-07 21:15:13 +02:00
bodnia
491802a6a1 [auth] fix Set petstore spec as default 2016-03-07 21:15:13 +02:00
bodnia
e957ff85bf [auth] Added logout for auth with apiKey and basic auth 2016-03-07 21:15:12 +02:00
Anna Bodnia
a50536693c [auth] Added logout button 2016-03-07 21:15:12 +02:00
Anna Bodnia
0644f7611a [auth] Fixed applying api key 2016-03-07 21:15:12 +02:00
Anna Bodnia
3b246024d7 Ran gulp 2016-03-07 21:15:09 +02:00
Anna Bodnia
eefc78db21 Put authorizations into popup 2016-03-07 21:15:09 +02:00
Anna Bodnia
7a3198ab4a [auth]: Api key, basic authorization in main view 2016-03-07 21:15:08 +02:00
Anna Bodnia
9207be7d4b Put authorizations into popup 2016-03-07 21:15:08 +02:00
Anna Bodnia
40d3161385 [auth]: Api key, basic authorization in main view 2016-03-07 21:15:04 +02:00
Anna Bodnia
18b8a7ce13 [auth] fixed base spec url 2016-03-07 21:14:57 +02:00
Anna Bodnia
a268d007a2 [auth] Added api key and basic authorization 2016-03-07 21:14:57 +02:00
Anna Bodnia
2199a8120c [auth] moved logout buttons into authentication view 2016-03-07 21:14:56 +02:00
bodnia
e405c42465 [auth] fix Set petstore spec as default 2016-03-07 21:14:56 +02:00
bodnia
67881fb07e [auth] Added logout for auth with apiKey and basic auth 2016-03-07 21:14:55 +02:00
Anna Bodnia
8280cc6b34 [auth] Added logout button 2016-03-07 21:14:55 +02:00
Anna Bodnia
85df0f78bc [auth] Fixed applying api key 2016-03-07 21:14:55 +02:00
Anna Bodnia
56e048aa17 Ran gulp 2016-03-07 21:14:54 +02:00
Anna Bodnia
a3035796b3 Put authorizations into popup 2016-03-07 21:14:51 +02:00
Anna Bodnia
59c6eeca1e [auth]: Api key, basic authorization in main view 2016-03-07 21:14:50 +02:00
Anna Bodnia
ff318ad23c Put authorizations into popup 2016-03-07 21:14:28 +02:00
Anna Bodnia
337b9bc922 [auth]: Api key, basic authorization in main view 2016-03-07 21:14:28 +02:00