Vladimír Gorej
9ca41e0b40
fix(resolve): make retrievalURI absolute before resolution ( #9214 )
...
Refs #9208
2023-09-14 13:33:31 +02:00
Vladimír Gorej
b7f533174a
fix(security): allow more strict CSP for SVG assets ( #9209 )
...
Refs #7540
2023-09-14 12:34:13 +02:00
Fernando López Guevara
7e65155a7b
fix(oauth2): parse params properly for casdoor in redirect ( #8149 )
...
Co-authored-by: Tim Lai <timothy.lai@smartbear.com >
2022-08-12 09:53:34 -07:00
Tim Lai
496d53e782
fix(dev-helpers): restore default url setting ( #7965 )
2022-03-31 11:46:19 -07:00
Tim Lai
51bd1c290d
fix(lint): additional directories to lint with fixes ( #7947 )
2022-03-25 11:07:51 -07:00
Daniil Leontiev
ec51dc38e9
refactor(dist): remove inline-code ( #7905 )
...
* apply /dist changes to /dev-helpers
* add missing "useBasicAuthenticationWithAccessCodeGrant: false" after merge conflict
Co-authored-by: akop <akop@ppi.de >
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-03-23 16:11:50 -07:00
Christopher Giroir
c81d7f0f30
feat(docker): add OAUTH_USE_BASIC_AUTH env ( #7474 )
...
Makes the last `initOAuth` variable configurable via environment
variables in the swagger-ui docker image.
Co-authored-by: Christopher Giroir <chrisgiroir@improbable.io >
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-03-21 13:53:07 -07:00
Bogdan-Hasanov
824917c2aa
fix(oauth2): addEventListener only if document state is not 'loading' ( #7828 )
...
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-03-02 11:27:53 -08:00
Tim Lai
07d346b516
feat(build): webpack@5 and webpack-dev-server@4 ( #7826 )
...
SwaggerUI is now built using `webpack@5`, with dev support for `webpack-dev-server@4`
- ES Module output bundle path now points to `swagger-ui-es-bundle-core`, which does not include dependencies
- No change to CommonJS output bundle or path
- Now uses Asset Modules, which replaces `file-loader`, `raw-loader`, and `url-loader`
- Removed unused rules/loaders for `.woff | .woff2 | .ttf | .eot` fonts and html
- Node polyfills are no longer bundled with `webpack@5`, and must be loaded separately and/or use `resolve.fallback`.
As an example, SwaggerUI loads `process`, `buffer`, and `stream-browserify` as `devDependencies` in order to build development and production bundles.
SwaggerUI-React
- Now imports `swagger-ui-es-bundle-core`, and similarly outputs `swagger-ui-es-bundle-core` to its `dist` directory
Dev notes:
- Order of execution matters for the production npm build scripts. `build-stylesheets` needs to get built first,
then cleanup of any empty artifacts, before building the various production bundles
- `Dev-helpers` now relies on `HTMLWebpackPlugin` to inject css and bundle files
2022-03-01 12:08:50 -08:00
Ihnat Klimchuk
2f8bfd03f8
feat (auth): support for flow type authorization_code in oauth2-redirect.html ( #6750 )
2021-01-12 20:02:04 -08:00
Mickaël Derriey
48ee32faa1
refactor(csp): Update how the JavaScript run function is invoked in oauth2-redirect.html ( #6393 )
...
ref #5720
2020-09-11 13:41:10 -07:00
Irena Shaigorodsky
d7d166d0a4
fix: specify charset utf-8 in html script declaration ( #6278 )
...
ref: #5311
2020-07-31 16:51:17 -07:00
Matthew Morrissette
275c8f2ccf
improvement: oauth "scopes" improvements ( #6037 )
...
* improvement: oauth "scopes" init parameter
* improvement: add "select all" and "select none" to oauth scopes popup
2020-06-10 11:27:54 -07:00
poveilleux
139592e353
feat: add PKCE support for OAuth2 Authorization Code flows ( #5361 )
...
* Add PKCE support.
* Fix tests
* Update oauth2.md
* Rename usePkce
* Fix the BrokenComponent error
* Update oauth2.md
* Remove isCode variable. Remove uuid4 dependency.
* Remove utils functions
* Import crypto
* Fix tests
* Fix the tests
* Cleanup
* Fix code_challenge generation
* Move code challenge and verifier to utils for mocks. Update tests.
* Mock the PKCE methods in the utils file properly.
* Add missing expect
* use target-method spies
* Add comments to explain test values.
* Get rid of jsrsasign.
2019-10-07 17:24:43 -07:00
Markus Poerschke
875caab173
improvement: prevent loading resources from third party CDN (via #4598 )
...
Remove usage of Google Fonts to avoid any data protection issue. Using a
CDN will leak data to a third party that can be simply avoided by using
system fonts instead.
Furthermore the usage of CDNs can cause legal issues in EU countries.
2018-07-05 21:55:25 -05:00
kyle
bf77474a11
use HTTPS for Petstore by default ( #4652 )
2018-06-15 14:36:15 -07:00
kyle
dc7d7054bf
fix: provide svg assets through React app instead of relying on HTML ( #4429 )
...
* fix: provide svg assets through React app instead of relying on HTML
* fix stylistic inconsistencies in HTML assets
2018-04-10 16:05:17 -07:00
wayglem
1f565b4847
show oauth error callback message when auth fails ( #4058 )
...
This change aims to display the oauth error to the user when the autnetication process fails.
Close #4048
2018-02-13 15:42:37 -08:00
Kyle Shockey
c23b884d9a
Add script documentation to development docs
2017-12-05 20:33:28 -08:00
Kyle Shockey
9400c91820
Merge branch 'master' of github.com:swagger-api/swagger-ui into ft/docs
2017-12-04 20:38:09 -08:00
Kyle Shockey
345c8dee57
WIP
2017-11-01 13:30:07 -07:00
kyle
6d22e38a04
Merge branch 'master' into ft/oas3-authorization
2017-10-20 19:07:38 -07:00
Kyle Shockey
8b81bcac48
OAS3 Auth MVP
2017-10-11 16:58:24 -07:00
Race, Dale
3711d19064
Add viewport meta tag
2017-10-11 08:43:02 -05:00
HelderSepu
947953d087
fix #3624
2017-09-02 19:59:18 -04:00
Owen Conti
24882b69a8
File formatting fixes
2017-07-17 21:15:05 -06:00
Owen Conti
0622bd7179
Revert changes based on @Minasokoni's suggestion
2017-07-17 21:09:25 -06:00
Owen Conti
54b867a9bc
Merge branch 'master' into bug/2903-wrong-font-for-error
...
# Conflicts:
# dev-helpers/index.html
2017-07-17 18:51:04 -06:00
Owen Conti
5de1689946
Remove embedded styles from index.html files
2017-07-08 11:34:55 -06:00
Raphaël MARQUES
8ce2b309d8
Complying with request for changes
2017-07-04 09:15:43 +02:00
Raphaël MARQUES
4fe27786f4
Adding apisSorter options, taking a string or a function as a configuration value
2017-06-27 15:29:07 +02:00
Anna Bodnia
62cb9ec581
Read me for modelPropertyMacro, changed for parameterMacro
2017-05-25 18:04:21 +03:00
Anna Bodnia
918e0e46c0
read me for parameterMacro
2017-05-23 15:36:42 +03:00
Anna Bodnia
edfe88d299
modelPropertyMacro, parameterMacro
2017-05-19 18:50:51 +03:00
Furkan Ayhan
0c7119e855
Send redirect url when authenticating with oauth2-authorization_code
...
also fix indentations of files
2017-05-16 16:50:13 +03:00
Anna Bodnia
8aebea34c4
add configuration of auth: scope separator, client id, client secret, app name, reaml, additionalQueryParams
2017-05-11 16:30:30 +03:00
Anna Bodnia
cbd74b0c67
enable configs plugin by default
2017-05-05 17:50:22 +03:00
shockey
8c023c907d
Update paths in index.html
2017-04-04 15:38:34 -07:00
Ron
7f525a8730
gone with the public
2017-04-04 14:37:45 -07:00
Kyle Shockey
229bd1df9a
Fix dev server
2017-03-30 00:16:17 -07:00