Fix formating

Signed-off-by: Nicolas Arnold <nic@roadie.io>
This commit is contained in:
Nicolas Arnold
2021-09-27 11:09:39 +01:00
parent 88622e6422
commit e6cb54be9b
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-auth-backend': patch
---
Allow users to override callback url of Github provider
Allow users to override callback url of GitHub provider
@@ -223,9 +223,8 @@ export const createGithubProvider = (
const enterpriseInstanceUrl = envConfig.getOptionalString(
'enterpriseInstanceUrl',
);
const customCallbackUrl = envConfig.getOptionalString(
'customCallbackUrl',
);
const customCallbackUrl =
envConfig.getOptionalString('customCallbackUrl');
const authorizationUrl = enterpriseInstanceUrl
? `${enterpriseInstanceUrl}/login/oauth/authorize`
: undefined;
@@ -235,8 +234,9 @@ export const createGithubProvider = (
const userProfileUrl = enterpriseInstanceUrl
? `${enterpriseInstanceUrl}/api/v3/user`
: undefined;
const callbackUrl = customCallbackUrl ||
`${globalConfig.baseUrl}/${providerId}/handler/frame`;
const callbackUrl =
customCallbackUrl ||
`${globalConfig.baseUrl}/${providerId}/handler/frame`;
const catalogIdentityClient = new CatalogIdentityClient({
catalogApi,