@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user