app,core-api: install DiscoveryApi in default app and use it for all auth providers

This commit is contained in:
Patrik Oldsberg
2020-08-20 17:56:33 +02:00
parent 96f1f522b9
commit ea1a36433d
11 changed files with 120 additions and 114 deletions
@@ -26,6 +26,7 @@ import {
githubAuthApiRef,
GithubAuth,
OAuthRequestManager,
UrlPatternDiscovery,
} from '@backstage/core';
import { gitOpsApiRef, GitOpsRestApi } from '../../api';
@@ -37,8 +38,9 @@ describe('ProfileCatalog', () => {
[
githubAuthApiRef,
GithubAuth.create({
backendUrl: 'http://localhost:7000',
basePath: '/auth/',
discoveryApi: UrlPatternDiscovery.compile(
'http://example.com/{{pluginId}}',
),
oauthRequestApi,
}),
],