mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Add Browserstack for IE11 testing (#6557)
* add browserstack * check for data before removing root token * fix root prefix and select by attributes for ie11 * use objectAt for ie11 * use blobs instead of files for ie11 * manually round cirucmference for ie11 * skip csp test on ie11 * skip tests in ie11 * include polyfill for CI * remove on exit hooks * update which browserstack tests are run * remove ie check since we are not running these tests in ie * remove ie check since we are not running these tests in ie
This commit is contained in:
@@ -12,7 +12,7 @@ import { supportedAuthBackends } from 'vault/helpers/supported-auth-backends';
|
||||
import { task, timeout } from 'ember-concurrency';
|
||||
const TOKEN_SEPARATOR = '☃';
|
||||
const TOKEN_PREFIX = 'vault-';
|
||||
const ROOT_PREFIX = '🗝';
|
||||
const ROOT_PREFIX = '_root_';
|
||||
const BACKENDS = supportedAuthBackends();
|
||||
|
||||
export { TOKEN_SEPARATOR, TOKEN_PREFIX, ROOT_PREFIX };
|
||||
@@ -296,9 +296,10 @@ export default Service.extend({
|
||||
if (this.environment() === 'development') {
|
||||
return;
|
||||
}
|
||||
|
||||
this.getTokensFromStorage().forEach(key => {
|
||||
const data = this.getTokenData(key);
|
||||
if (data.policies.includes('root')) {
|
||||
if (data && data.policies.includes('root')) {
|
||||
this.removeTokenData(key);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user