Browse Source

More compact and expandable token checker

feature/mapper-integration
Quildra 2 years ago
parent
commit
245f13b83f
  1. 12
      packages/bridge-ui/src/app/app.config.ts

12
packages/bridge-ui/src/app/app.config.ts

@ -31,12 +31,12 @@ export const appConfig: ApplicationConfig = {
allowedList: [
{
uriMatcher: (uri) => {
let is_create = uri.match('.+\/create');
let is_update = uri.match('.+\/update');
let is_delete = uri.match('.+\/delete');
let is_login = uri.match('.+\/login');
let is_claim = uri.match('.+\/claim-racer');
return is_create != null || is_update != null || is_delete != null || is_claim != null;
let needs_token = uri.match('.+\/create') != null;
needs_token ||= uri.match('.+\/update') != null;
needs_token ||= uri.match('.+\/delete') != null;
needs_token ||= uri.match('.+\/login') != null;
needs_token ||= uri.match('.+\/claim-racer') != null;
return needs_token;
},
tokenOptions: {
authorizationParams: {

Loading…
Cancel
Save