Merge pull request #1512 from spotify/freben/oauth2-custom-identity-provider

feat(auth): implement generic oauth2 provider
This commit is contained in:
Nikita Dudnik
2020-07-03 10:21:06 +02:00
committed by GitHub
14 changed files with 520 additions and 28 deletions
+12 -1
View File
@@ -26,12 +26,14 @@ import {
FeatureFlags,
GoogleAuth,
GithubAuth,
OAuth2,
OktaAuth,
GitlabAuth,
oauthRequestApiRef,
OAuthRequestManager,
googleAuthApiRef,
githubAuthApiRef,
oauth2ApiRef,
oktaAuthApiRef,
gitlabAuthApiRef,
storageApiRef,
@@ -109,7 +111,16 @@ export const apis = (config: ConfigApi) => {
builder.add(
gitlabAuthApiRef,
GitlabAuth.create({
apiOrigin: 'http://localhost:7000',
apiOrigin: backendUrl,
basePath: '/auth/',
oauthRequestApi,
}),
);
builder.add(
oauth2ApiRef,
OAuth2.create({
apiOrigin: backendUrl,
basePath: '/auth/',
oauthRequestApi,
}),