Merge pull request #8283 from backstage/mob/identity-api

core-plugin-api: stabilize IdentityApi
This commit is contained in:
Johan Haals
2021-12-08 14:29:03 +01:00
committed by GitHub
56 changed files with 1163 additions and 327 deletions
+2 -11
View File
@@ -24,20 +24,11 @@ import { UrlPatternDiscovery } from '@backstage/core-app-api';
const server = setupServer();
const identityApi: IdentityApi = {
getUserId() {
return 'jane-fonda';
},
getProfile() {
return { email: 'jane-fonda@spotify.com' };
},
const identityApi = {
async getIdToken() {
return Promise.resolve('fake-id-token');
},
async signOut() {
return Promise.resolve();
},
};
} as IdentityApi;
describe('FossaClient', () => {
setupRequestMockHandlers(server);