uppy/e2e
Mikael Finstad ec4bc58508
Provider user sessions (#4619)
New concept "simple auth" - authentication that happens immediately (in one http request) without redirecting to any third party.

uppyAuthToken initially used to simply contain an encrypted & json encoded OAuth2 access_token for a specific provider. Then we added refresh tokens as well inside uppyAuthToken #4448. Now we also allow storing other state or parameters needed for that specific provider, like username, password, host name, webdav URL etc... This is needed for providers like webdav, ftp etc, where the user needs to give some more input data while authenticating

Companion:
- `providerTokens` has been renamed to `providerUserSession` because it now includes not only tokens, but a user's session with a provider.

Companion `Provider` class:
- New `hasSimpleAuth` static boolean property - whether this provider uses simple auth
- uppyAuthToken expiry default 24hr again for providers that don't support refresh tokens
- make uppyAuthToken expiry configurable per provider - new `authStateExpiry` static property (defaults to 24hr)
- new static property `grantDynamicToUserSession`, allows providers to specify which state from Grant `dynamic` to include into the provider's `providerUserSession`.
2023-12-05 22:55:41 +01:00
..
clients Revert "@uppy/react: add useUppyState (#4711)" (#4789) 2023-11-12 02:03:55 +01:00
cypress Provider user sessions (#4619) 2023-12-05 22:55:41 +01:00
.parcelrc meta: Make E2E Great Again (#3444) 2022-02-08 17:37:27 +01:00
cypress.config.mjs e2e: increase requestTimeout to 16s (#4587) 2023-07-19 11:54:22 +02:00
generate-test.mjs meta: use load balancer for companion in e2e tests (#4228) 2023-02-02 11:25:50 +01:00
mock-server.mjs @uppy/companion: Use filename from content-disposition instead of relying on url, with fallback (#4489) 2023-06-09 19:22:20 +01:00
package.json Revert "@uppy/react: add useUppyState (#4711)" (#4789) 2023-11-12 02:03:55 +01:00
start-companion-with-load-balancer.mjs meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00
tsconfig.json meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00