Merge pull request #2074 from spotify/rugvip/discovery

[RFC] Add DiscoveryApi
This commit is contained in:
Raghunandan Balachandran
2020-08-27 15:07:21 +02:00
committed by GitHub
22 changed files with 373 additions and 211 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,
}),
],