(function(){ "use strict"; angular.module('shared') .factory('CrossSiteAuth', [ function(){ function authGoUrl(site, authorizer, targetUri){ return "/main/AuthGo/site/" + site + "/authorizer/" + authorizer + "/uri/" + encodeURIComponent(window.btoa(targetUri)); } return { authGoUrl: authGoUrl } }]); })();