KEYCLOAK-12685 Set callback URI for identity providers to use frontend URL

This commit is contained in:
stianst 2020-01-21 09:19:05 +01:00 committed by Stian Thorgersen
parent a3e5f9d547
commit c38baa32ba

View file

@ -1012,7 +1012,7 @@ module.controller('RealmIdentityProviderCtrl', function($scope, $filter, $upload
}
}, true);
$scope.callbackUrl = encodeURI($location.absUrl().replace(/\/admin.*/, "/realms/") + realm.realm + "/broker/") ;
$scope.callbackUrl = authServerUrl + "/realms/" + realm.realm + "/broker/";
$scope.addProvider = function(provider) {
$location.url("/create/identity-provider/" + realm.realm + "/" + provider.id);