plugin/auth-backend: add gitlab oauth

This commit is contained in:
danztran
2020-06-28 22:24:47 +07:00
parent 9ddfa56b44
commit f524bbdea2
18 changed files with 497 additions and 9 deletions
+11
View File
@@ -27,11 +27,13 @@ import {
GoogleAuth,
GithubAuth,
OktaAuth,
GitlabAuth,
oauthRequestApiRef,
OAuthRequestManager,
googleAuthApiRef,
githubAuthApiRef,
oktaAuthApiRef,
gitlabAuthApiRef,
storageApiRef,
WebStorage,
} from '@backstage/core';
@@ -102,6 +104,15 @@ export const apis = (config: ConfigApi) => {
}),
);
builder.add(
gitlabAuthApiRef,
GitlabAuth.create({
apiOrigin: 'http://localhost:7000',
basePath: '/auth/',
oauthRequestApi,
}),
);
builder.add(
techRadarApiRef,
new TechRadar({