Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
fix(config): remove invalid default audience value
Browse files Browse the repository at this point in the history
Remove "ls-api" default audience value since API audience values must be formatted as a URI.
  • Loading branch information
kv979w committed Aug 13, 2020
1 parent 72e97e2 commit c4ea1d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/loopback-proxy-app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ApplicationConfig} from '@loopback/core';
import {RestExplorerComponent} from '@loopback/rest-explorer';
import {RepositoryMixin} from '@loopback/repository';
import {RestApplication} from '@loopback/rest';
import * as path from 'path';
import {join} from 'path';
import {LabShareSequence} from './sequence';
import {LegacyLoaderComponent} from './legacy-loader.component';
import {HealthComponent} from '@labshare/services-health';
Expand All @@ -20,11 +20,11 @@ export class LoopbackProxyApplication extends BootMixin(RepositoryMixin(RestAppl
this.bind(AuthenticationBindings.AUTH_CONFIG).to({
authUrl: options?.services?.auth?.url || options?.auth?.url || 'https://a.labshare.org/_api',
tenant: options?.services?.auth?.tenant || options?.services?.auth?.organization || 'ls',
audience: options?.services?.auth?.audience || 'ls-api'
audience: options?.services?.auth?.audience
});

// Set up default home page
this.static('/', path.join(__dirname, '../public'));
this.static('/', join(__dirname, '../public'));

this.component(RestExplorerComponent);
this.projectRoot = __dirname;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('Loopback Proxy App', () => {
pattern: '{src/api,api}/*.js',
auth: {
tenant: 'ls',
audience: 'ls-api'
audience: 'https://example.com'
}
},
auth: {
Expand Down

0 comments on commit c4ea1d8

Please sign in to comment.