Skip to content

Commit

Permalink
Step 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Oct 30, 2023
1 parent c5cc785 commit 7aa0b6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getImageForTheIdentityProvider(templateId: string): string {
*/
export function getCallbackUrl(orgId: string): string {

return `${getOrgUrl(orgId)}/commonauth`;
return `${getManagementAPIServerBaseUrl()}/o/${orgId}/commonauth`;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ export function checkAdmin(scopes: string[]): boolean {
*/
export function getOrgUrl(orgId: string): string {

const managementAPIServerBaseUrl = getManagementAPIServerBaseUrl();

return `${config.CommonConfig.AuthorizationConfig.BaseOrganizationUrl}/o`;
}

Expand Down

0 comments on commit 7aa0b6a

Please sign in to comment.