mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
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`. |
||
|---|---|---|
| .. | ||
| clients | ||
| cypress | ||
| .parcelrc | ||
| cypress.config.mjs | ||
| generate-test.mjs | ||
| mock-server.mjs | ||
| package.json | ||
| start-companion-with-load-balancer.mjs | ||
| tsconfig.json | ||