uppy/packages/@uppy/companion/test
Mikael Finstad d6d940c6b2
Enable CSRF protection in grant (OAuth2) (#5504)
* Enable CSRF protection in grant (OAuth2)

I've been doing some testing and from what I can see, this is already supported in https://github.com/simov/grant (which companion uses for OAuth2), when enabling the `state` parameter. It seems to be working and it is checking the parameter when redirected back from the provider: 61fe48a8da/lib/flow/oauth2.js (L72So)

* fix test
2024-11-11 10:03:26 +01:00
..
__mocks__ meta: fix all ESLint warnings and turn them into errors (#4398) 2023-04-04 15:54:13 +02:00
__tests__ Enable CSRF protection in grant (OAuth2) (#5504) 2024-11-11 10:03:26 +01:00
fixtures @uppy/google-photos: add plugin (#5265) 2024-06-19 14:48:45 +02:00
output refactor: rename service-dog -> companion 2018-07-22 18:53:57 +01:00
resources companion: fix box provider tests + remove unused e2e test files (#2628) 2020-11-13 18:21:14 +01:00
mockoauthstate.js @uppy/companion: change COMPANION_ENABLE_URL_ENDPOINT default (#5198) 2024-05-30 17:22:47 +02:00
mockserver.js @uppy/companion: remove oauthOrigin (#5311) 2024-07-09 12:00:51 +02:00
mocksocket.js Rewrite Companion providers to use streams to allow simultaneous upload/download without saving to disk (#3159) 2021-11-01 16:35:25 +07:00