-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge 1.7.0 beta branch #419
Commits on Dec 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 559d2c9 - Browse repository at this point
Copy the full SHA 559d2c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for eceac8f - Browse repository at this point
Copy the full SHA eceac8fView commit details
Commits on Dec 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 29441d1 - Browse repository at this point
Copy the full SHA 29441d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cc83a3 - Browse repository at this point
Copy the full SHA 5cc83a3View commit details
Commits on Dec 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e46d3ca - Browse repository at this point
Copy the full SHA e46d3caView commit details
Commits on Jan 17, 2020
-
Merge branch 'master' into export-global-types
Steve Hobbs authoredJan 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 7f277d1 - Browse repository at this point
Copy the full SHA 7f277d1View commit details
Commits on Jan 24, 2020
-
Merge branch 'master' into export-global-types
Steve Hobbs authoredJan 24, 2020 Configuration menu - View commit details
-
Copy full SHA for f596300 - Browse repository at this point
Copy the full SHA f596300View commit details
Commits on Jan 26, 2020
-
[SDK-1178] Local Storage caching mechanism (#303)
* Refactored existing cache * Renamed to InMemoryCache * Removed default export * Added ICache * Refactored tests * Auth0Client now uses ICache instead of implemented cache type * Added ability to configure cache strategy * Added VS Code debug configuration for running tests * Implemented local storage cache * Made use of "in" to check presence of key in object * Refactored playground page to use Vue + Bootstrap * Added ability to clear the token cache Added clear() to the ICache interface, meaning that this had to be applied to the memory and localstorage caches. Made use of jest-localstorage-mock package for easier testing with localstorage, making the clear method easier to test for the LocalStorageCache implementation. * Revamped the playground page with Vue and Bootstrap additions * Vulnerable dependency update * Added a section in the readme about the caching strategy * Fixed integration tests * Readme wording * Refactored how items are cleared from local storage * Refactored cache key * Readme tweak to make what 'data' is more clear * Renamed cacheStrategy option to cacheLocation * Cache now includes client_id in key
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for a13a3e6 - Browse repository at this point
Copy the full SHA a13a3e6View commit details -
[SDK-1179] Support for rotating refresh tokens (#315)
* Refactored getting token using iframe into its own method * Implemented getTokenUsingRefreshToken * Fixed up the playground page to support refresh tokens * Set offline_access scope during initialization * Added error condition for when a refresh token isn't stored or no cache exists * Removed specification of audience when calling token endpoint * Clarified docs on useRefreshTokens * Simplified usage of getUniqueScopes in index.ts * Fixed some playground syntax issues for IE11 * Playground now shows auth info on load if authenticated * Simplified integration tests * Added more integration tests around getting access tokens * Encoded the nonce value when building authorize URLs * Renamed encodeState to encode * Fixed broken integration test
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 49f0edd - Browse repository at this point
Copy the full SHA 49f0eddView commit details -
* Release 1.7.0-beta.1 * Tweaked intermittently-failing test
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 6f95174 - Browse repository at this point
Copy the full SHA 6f95174View commit details -
Fixed issue with cache not retaining refresh token (#333)
* Fixed issue with cache not retaining refresh token * Fix integration tests * Removed unused core-js import * Extracted 1 day in seconds value to a constant * Applied comment to be consistant with related test * Applied brace styling for consistancy * Reworked expiry tests to mock date instead of using negative exp * Added some comments to the cache tests to explain the test scenario * Cleaned up JS return statement styling
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for e06e3c3 - Browse repository at this point
Copy the full SHA e06e3c3View commit details -
Steve Hobbs committed
Jan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for ab6def6 - Browse repository at this point
Copy the full SHA ab6def6View commit details -
Wrapped InMemoryCache implementation in a closure (#337)
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for cdbdb4e - Browse repository at this point
Copy the full SHA cdbdb4eView commit details -
Reinstated lock on getTokenSilently
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 3733206 - Browse repository at this point
Copy the full SHA 3733206View commit details -
Fixed up code + tests after rebase
Steve Hobbs committedJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 2ef25e6 - Browse repository at this point
Copy the full SHA 2ef25e6View commit details -
Merge branch 'release/rtr' into export-global-types
Steve Hobbs authoredJan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 02ecd83 - Browse repository at this point
Copy the full SHA 02ecd83View commit details -
Steve Hobbs committed
Jan 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 2ed1faa - Browse repository at this point
Copy the full SHA 2ed1faaView commit details
Commits on Feb 7, 2020
-
Merge remote-tracking branch 'origin/master' into release/rtr
Steve Hobbs committedFeb 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 53509dc - Browse repository at this point
Copy the full SHA 53509dcView commit details -
Removed undesirables from the docs generation
Steve Hobbs committedFeb 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 3b4cf56 - Browse repository at this point
Copy the full SHA 3b4cf56View commit details
Commits on Feb 11, 2020
-
Merge branch 'master' into release/rtr
Steve Hobbs committedFeb 11, 2020 Configuration menu - View commit details
-
Copy full SHA for 7660aea - Browse repository at this point
Copy the full SHA 7660aeaView commit details
Commits on Feb 14, 2020
-
[SDK-1352] Removed setTimeout cache removal in favour of removal-on-r…
…ead (#354) * Removed setTimeout cache expiry in favour of expiry-on-read * Replace magic values with a constant
Steve Hobbs authoredFeb 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 175cb47 - Browse repository at this point
Copy the full SHA 175cb47View commit details
Commits on Feb 17, 2020
-
[SDK-1279] getTokenSilently retry logic (#336)
* Added retry logic to getJSON * Moved retry count to a constant * Reverted changes to oauthToken * Reduced retry count to 3 * Implemented a timeout around the fetch call * Made the fetch timeout a default value and adjusted tests * Fixed broken test after merge * Implemented AbortController to abort fetch on timeout * Added abortcontroller polyfill * Created factory function for AbortController to be mocked and tested
Steve Hobbs authoredFeb 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 966f6a2 - Browse repository at this point
Copy the full SHA 966f6a2View commit details -
[SDK-1352] Stop checking
isAuthenticated
cookie on initialization w……hen using local storage (#352) * Changes to the initialization strategy * Removed unused import from a test
Steve Hobbs authoredFeb 17, 2020 Configuration menu - View commit details
-
Copy full SHA for ecff936 - Browse repository at this point
Copy the full SHA ecff936View commit details -
Merge branch 'master' into release/rtr
Steve Hobbs committedFeb 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 4e5ad57 - Browse repository at this point
Copy the full SHA 4e5ad57View commit details -
Steve Hobbs authored
Feb 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 5a64d45 - Browse repository at this point
Copy the full SHA 5a64d45View commit details
Commits on Mar 2, 2020
-
Fix error in library type definitions (#367)
`// @ts-ignore` comment is not preserved in the generated type definition, which means that library ships broken type definitions and consumers will get an error when they attempt to use it. Reproduction: ``` $ npm i @auth0/[email protected] typescript $ cat index.ts import c from '@auth0/auth0-spa-js'; $ ./node_modules/.bin/tsc --noEmit index.ts node_modules/@auth0/auth0-spa-js/dist/typings/index.d.ts:9:8 - error TS2440: Import declaration conflicts with local declaration of 'Auth0Client'. 9 import Auth0Client from './Auth0Client'; ~~~~~~~~~~~ Found 1 error. ```
Configuration menu - View commit details
-
Copy full SHA for 2cd8340 - Browse repository at this point
Copy the full SHA 2cd8340View commit details
Commits on Mar 3, 2020
-
[SDK-1386] Fall back to iframe method if no refresh token is available (
#364) * Logic falls back to the iframe method when no refresh token is found * Cleaned up a variable name * Updated integration test
Steve Hobbs authoredMar 3, 2020 Configuration menu - View commit details
-
Copy full SHA for d8a6f06 - Browse repository at this point
Copy the full SHA d8a6f06View commit details -
Steve Hobbs authored
Mar 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 0b8cfc1 - Browse repository at this point
Copy the full SHA 0b8cfc1View commit details
Commits on Mar 19, 2020
-
Merge remote-tracking branch 'origin/master' into release/rtr
Steve Hobbs committedMar 19, 2020 Configuration menu - View commit details
-
Copy full SHA for a877501 - Browse repository at this point
Copy the full SHA a877501View commit details -
Merge remote-tracking branch 'origin/master' into release/rtr
This includes the reversion of the Auth0Client constructor feature.
Steve Hobbs committedMar 19, 2020 Configuration menu - View commit details
-
Copy full SHA for bfb95e6 - Browse repository at this point
Copy the full SHA bfb95e6View commit details
Commits on Mar 24, 2020
-
Updated cache configuration instructions in the readme
Steve Hobbs authoredMar 24, 2020 Configuration menu - View commit details
-
Copy full SHA for 891a749 - Browse repository at this point
Copy the full SHA 891a749View commit details -
Removed unused cacheStrategy param from buildAuthorizeUrl
Steve Hobbs committedMar 24, 2020 Configuration menu - View commit details
-
Copy full SHA for 5863664 - Browse repository at this point
Copy the full SHA 5863664View commit details
Commits on Mar 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ed1f8a3 - Browse repository at this point
Copy the full SHA ed1f8a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8e6f6 - Browse repository at this point
Copy the full SHA 2a8e6f6View commit details
Commits on Apr 7, 2020
-
Merge remote-tracking branch 'origin/master' into release/rtr
Steve Hobbs committedApr 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 2db03fc - Browse repository at this point
Copy the full SHA 2db03fcView commit details -
[SDK-1507] Dependency upgrade (#405)
* Ran npm audit fix * Updated packages within semver * Updated typedoc * Updated rollup to 2.3.3 + plugins * Updated idtoken-verifier to 2.0.2 * Fixed warnings on async describe blocks * Updated prettier/pretty-quick * Updated Husky and ran husky-upgrade * Updated Cypress, wait-on and concurrently * Upgraded tslint * Updated circle image
Steve Hobbs authoredApr 7, 2020 Configuration menu - View commit details
-
Copy full SHA for e0ae15c - Browse repository at this point
Copy the full SHA e0ae15cView commit details
Commits on Apr 14, 2020
-
* fetch in a web worker * token worker * known issue: doesn't work if user already logged in (need authorization_code grant_type to populate the refresh token) * add iframe fallback * fix tests * We want to load: `rollup-plugin-worker-loader::module:./token.worker.ts` But not: rollup-plugin-worker-loader::module:/Users/adammcgrath/dev/auth0-spa-js/src/token.worker.ts TODO: check windows * Fixed ES5 transpilation for rollup worker plugin * Make messages serializable using `JSON.parse(JSON.stringify({}))` Swap imports per https://github.com/mo/abortcontroller-polyfill/blob/3f1c13d2e4087ee15ded81786f1110ae547931bb/README.md#using-it-on-internet-explorer-11-msie11 * only use worker for non ie, local refresh token opts TODO: fix tests * Fix tests * Removed refresh token from worker memory when not included in response * Moved offline_access scope configuration to constructor * Modified playground to use both factory func and constructor * Remove Object.assign * Remove checks to fix rebuild issue * Abort timed out requests in the Web Worker * Errors * Fix tests * Add some more tests * DRY up the tests a little * Moar tests * unused import * update rollup-plugin-web-worker-loader don't run `addEventListener` in tests add test for missing refresh token and localstorage * add timeout tests * add browser tests * Only include files in the typings copy process * Fix fallback logic when no RT and no worker * add browser tests and comments * bump node version in Jenkinsfile * Removed unused import * Added sanity check for web worker support * Fixed tests for window.Worker check * Moved constructor tests into Auth0Client Co-authored-by: Steve Hobbs <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d1528fe - Browse repository at this point
Copy the full SHA d1528feView commit details
Commits on Apr 15, 2020
-
Updated readme with info on refresh tokens (#415)
Steve Hobbs authoredApr 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 707ec5a - Browse repository at this point
Copy the full SHA 707ec5aView commit details -
Implemented fallback to iframe when given specific audience (#414)
Steve Hobbs authoredApr 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 55d479e - Browse repository at this point
Copy the full SHA 55d479eView commit details -
Check if iframe is still in body before removing (#399)
If the iframe is removed from the DOM prior to the timeout it would error on removeChild. Error thrown: `Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.` Bug introduced in #376 Co-authored-by: Steve Hobbs <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b04165 - Browse repository at this point
Copy the full SHA 7b04165View commit details -
Check if source of event exists before closing it (#410)
When the iframe is closed, the source of the event message is null, resulting in an error: Cannot read property 'close' of undefined (Chrome). Co-authored-by: Steve Hobbs <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 609067a - Browse repository at this point
Copy the full SHA 609067aView commit details -
Steve Hobbs committed
Apr 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 9ab3402 - Browse repository at this point
Copy the full SHA 9ab3402View commit details