in edge-service/src/main/resources/ui/js/login.js [45:67]
function loginWithGithubAction() {
setCookie("initialState", Math.floor(100000000 + Math.random() * 900000000), 1);
var redirectURI = window.location.protocol + "//"
+ window.location.hostname + ":" + window.location.port
+ "/ui/githubLoginCallback.html";
redirectURI = encodeURIComponent(redirectURI);
$.ajax({
type: 'GET',
url: "/api/authentication-server/v1/thirdParty/providerInfo/github?redirectURI=" + redirectURI,
success: function (data) {
console.log(JSON.stringify(data));
window.location = data;
},
error: function(data) {
console.log(JSON.stringify(data));
var error = document.getElementById("error");
error.textContent="Login failed";
error.hidden=false;
},
async: true
});
}