uppy/packages/@uppy/core/src
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
..
__snapshots__ test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
mocks test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
_common.scss meta: run Prettier on existing files (#4713) 2023-09-29 11:11:28 +02:00
_utils.scss meta: run Prettier on existing files (#4713) 2023-09-29 11:11:28 +02:00
_variables.scss Update Uppy's blue color to meet WCAG contrast requirements (#4777) 2023-11-09 12:10:29 +01:00
BasePlugin.js Provider user sessions (#4619) 2023-12-05 22:55:41 +01:00
getFileName.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
index.js Fix all breaking todo comments for 3.0 (#3907) 2022-08-03 20:07:24 +02:00
locale.js Load Google Drive / OneDrive lists 5-10x faster & always load all files (#4513) 2023-07-10 10:15:35 +02:00
loggers.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
Restricter.js @uppy/core: improve performance of validating & uploading files (#4402) 2023-04-15 23:50:19 +08:00
style.scss Move stylesheets into packages. 2018-06-18 12:35:47 +02:00
supportsUploadProgress.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
supportsUploadProgress.test.js test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
UIPlugin.js @uppy/webcam: fix bug when Dashboard is using a custom id (#4099) 2022-10-19 16:08:49 -03:00
UIPlugin.test.js test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
Uppy.js Provider user sessions (#4619) 2023-12-05 22:55:41 +01:00
Uppy.test.js don't cancel all files when clicking "done" (#4771) 2023-11-07 22:08:12 +00:00