mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-27 09:31:47 +00:00
sync authfix
This commit is contained in:
206
debug_response_fixed_1757099969.html
Normal file
206
debug_response_fixed_1757099969.html
Normal file
@@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
|
||||
<title>GARMIN Authentication Application</title>
|
||||
<link href="/sso/css/GAuth.css?20210406" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<link rel="stylesheet" href=""/>
|
||||
|
||||
<script type="text/javascript" src="/sso/js/jquery/3.7.1/jquery.min.js?20210319"></script>
|
||||
<script type="text/javascript">jQuery.noConflict();</script>
|
||||
<script type="text/javascript" src="/sso/js/jquery-validate/1.16.0/jquery.validate.min.js?20210319"></script>
|
||||
<script type="text/javascript" src="/sso/js/jsUtils.js?20210406"></script>
|
||||
<script type="text/javascript" src="/sso/js/json2.js"></script>
|
||||
<script type="text/javascript" src="/sso/js/consoleUtils.js?20210319"></script>
|
||||
<script type="text/javascript" src="/sso/js/postmessage.js?20210319"></script>
|
||||
<script type="text/javascript" src="/sso/js/popupWindow.js"></script>
|
||||
<script type="text/javascript" src="/sso/js/base.js?20231020"></script>
|
||||
<script type="text/javascript" src="/sso/js/gigyaUtils.js?20210319"></script>
|
||||
<script type="text/javascript" src="/sso/js/login.js?20211102"></script>
|
||||
<script type="text/javascript" src="/sso/js/reCaptchaUtil.js?20230706"></script>
|
||||
|
||||
<script>
|
||||
var recaptchaSiteKey = null;
|
||||
var reCaptchaURL = "\\\/sso\\\/reCaptcha?clientId=GarminConnect\u0026consumeServiceTicket=false\u0026embedWidget=true\u0026gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso\u0026generateExtraServiceTicket=true\u0026id=gauth-widget\u0026locale=en_US\u0026redirectAfterAccountCreationUrl=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm\u0026redirectAfterAccountLoginUrl=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm\u0026service=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm\u0026source=https%3A%2F%2Fsso.garmin.com%2Fsso";
|
||||
var isRecaptchaEnabled = null;
|
||||
var recaptchaToken = null;
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var parent_url = "https:\/\/sso.garmin.com\/sso";
|
||||
var status = "";
|
||||
var result = "";
|
||||
var clientId = 'GarminConnect';
|
||||
var embedWidget = true;
|
||||
var isUsernameDefined = (false == true) || (false == true);
|
||||
|
||||
// Gigya callback to SocialSignInController for brand new social network users redirects to this page
|
||||
// to popup Create or Link Social Account page, but has a possibly mangled source parameter
|
||||
// where "?" is set as "<QM>", so translate it back to "?" here.
|
||||
parent_url = parent_url.replace('<QM>', '?');
|
||||
var parent_scheme = parent_url.substring(0, parent_url.indexOf("://"));
|
||||
var parent_hostname = parent_url.substring(parent_scheme.length + 3, parent_url.length);
|
||||
if (parent_hostname.indexOf("/") != -1) {
|
||||
parent_hostname = parent_hostname.substring(0, parent_hostname.indexOf("/"));
|
||||
}
|
||||
var parentHost = parent_scheme + "://" + parent_hostname;
|
||||
var createAccountConfigURL = '\/sso\/createNewAccount?clientId%3DGarminConnect%26consumeServiceTicket%3Dfalse%26embedWidget%3Dtrue%26gauthHost%3Dhttps%253A%252F%252Fsso.garmin.com%252Fsso%26generateExtraServiceTicket%3Dtrue%26id%3Dgauth-widget%26locale%3Den_US%26redirectAfterAccountCreationUrl%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26redirectAfterAccountLoginUrl%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26service%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26source%3Dhttps%253A%252F%252Fsso.garmin.com%252Fsso';
|
||||
var socialConfigURL = 'https://sso.garmin.com/sso/socialSignIn?clientId%3DGarminConnect%26consumeServiceTicket%3Dfalse%26embedWidget%3Dtrue%26gauthHost%3Dhttps%3A%2F%2Fsso.garmin.com%2Fsso%26generateExtraServiceTicket%3Dtrue%26id%3Dgauth-widget%26locale%3Den_US%26redirectAfterAccountCreationUrl%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26redirectAfterAccountLoginUrl%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26service%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26source%3Dhttps%3A%2F%2Fsso.garmin.com%2Fsso';
|
||||
var gigyaURL = "https://cdns.gigya.com/js/gigya.js?apiKey=2_R3ZGY8Bqlwwk3_63knoD9wA_m-Y19mAgW61bF_s5k9gymYnMEAtMrJiF5MjF-U7B";
|
||||
|
||||
if (createAccountConfigURL.indexOf('%253A%252F%252F') != -1) {
|
||||
createAccountConfigURL = decodeURIComponent(createAccountConfigURL);
|
||||
}
|
||||
consoleInfo('signin.html embedWidget: true, createAccountConfigURL: \/sso\/createNewAccount?clientId%3DGarminConnect%26consumeServiceTicket%3Dfalse%26embedWidget%3Dtrue%26gauthHost%3Dhttps%253A%252F%252Fsso.garmin.com%252Fsso%26generateExtraServiceTicket%3Dtrue%26id%3Dgauth-widget%26locale%3Den_US%26redirectAfterAccountCreationUrl%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26redirectAfterAccountLoginUrl%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26service%3Dhttps%253A%252F%252Fconnect.garmin.com%252FoauthConfirm%26source%3Dhttps%253A%252F%252Fsso.garmin.com%252Fsso, socialEnabled: true, gigyaSupported: true, socialConfigURL(): https://sso.garmin.com/sso/socialSignIn?clientId%3DGarminConnect%26consumeServiceTicket%3Dfalse%26embedWidget%3Dtrue%26gauthHost%3Dhttps%3A%2F%2Fsso.garmin.com%2Fsso%26generateExtraServiceTicket%3Dtrue%26id%3Dgauth-widget%26locale%3Den_US%26redirectAfterAccountCreationUrl%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26redirectAfterAccountLoginUrl%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26service%3Dhttps%3A%2F%2Fconnect.garmin.com%2FoauthConfirm%26source%3Dhttps%3A%2F%2Fsso.garmin.com%2Fsso');
|
||||
|
||||
if (socialConfigURL.indexOf('%3A%2F%2F') != -1) {
|
||||
socialConfigURL = decodeURIComponent(socialConfigURL);
|
||||
}
|
||||
|
||||
if( status != null && status != ''){
|
||||
send({'status':status});
|
||||
}
|
||||
|
||||
jQuery(document).ready( function(){
|
||||
|
||||
|
||||
consoleInfo("signin.html: setting field validation rules...");
|
||||
|
||||
jQuery("#username").rules("add",{
|
||||
required: true,
|
||||
messages: {
|
||||
required: "Email is required."
|
||||
}});
|
||||
|
||||
jQuery("#password").rules("add", {
|
||||
required: true,
|
||||
messages: {
|
||||
required: "Password is required."
|
||||
}
|
||||
});
|
||||
|
||||
consoleInfo("signin.html: done setting field validation rules...");
|
||||
|
||||
});
|
||||
|
||||
XD.receiveMessage(function(m){
|
||||
consoleInfo("signin.html: " + m.data + " received on " + window.location.host);
|
||||
if (m && m.data) {
|
||||
var md = m.data;
|
||||
if (typeof(md) === 'string') {
|
||||
md = JSON.parse(m.data);
|
||||
}
|
||||
if (md.setUsername) {
|
||||
consoleInfo("signin.html: Setting username \"" + md.username + "\"...");
|
||||
jQuery("#signInWithDiffLink").click(); // Ensure the normal login form is shown.
|
||||
jQuery("#username").val(md.username);
|
||||
jQuery("#password").focus();
|
||||
}
|
||||
}
|
||||
}, parentHost);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- begin GAuth component -->
|
||||
<div id="GAuth-component">
|
||||
<!-- begin login component-->
|
||||
<div id="login-component" class="blueForm-basic">
|
||||
<input type="hidden" id="queryString" value="clientId=GarminConnect&consumeServiceTicket=false&embedWidget=true&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso&generateExtraServiceTicket=true&id=gauth-widget&locale=en_US&redirectAfterAccountCreationUrl=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm&redirectAfterAccountLoginUrl=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm&service=https%3A%2F%2Fconnect.garmin.com%2FoauthConfirm&source=https%3A%2F%2Fsso.garmin.com%2Fsso" />
|
||||
<input type="hidden" id="contextPath" value="/sso" />
|
||||
<!-- begin login form -->
|
||||
<div id="login-state-default">
|
||||
<h2>Sign In</h2>
|
||||
|
||||
<form method="post" id="login-form">
|
||||
|
||||
<div class="form-alert">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="username-error" style="display:none;"></div>
|
||||
<div id="password-error" style="display:none;"></div>
|
||||
</div>
|
||||
<div class="textfield">
|
||||
<label for="username">Email</label>
|
||||
<!-- If the lockToEmailAddress parameter is specified then we want to mark the field as readonly,
|
||||
preload the email address, and disable the other input so that null isn't sent to the server. We'll
|
||||
also style the field to have a darker grey background and disable the mouse pointer
|
||||
-->
|
||||
|
||||
<!-- If the lockToEmailAddress parameter is NOT specified then keep the existing functionality and disable the readonly input field
|
||||
-->
|
||||
<input class="login_email" name="username" id="username" value="" type="email" spellcheck="false" autocorrect="off" autocapitalize="off"/>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="textfield">
|
||||
<label for="password">Password</label>
|
||||
<a id="loginforgotpassword" class="login-forgot-password" style="cursor:pointer">(Forgot?)</a>
|
||||
<input type="password" name="password" id="password" spellcheck="false" autocorrect="off" autocapitalize="off" />
|
||||
<strong id="capslock-warning" class="information" title="Caps lock is on." style="display: none;">Caps lock is on.</strong>
|
||||
</div>
|
||||
<input type="hidden" name="embed" value="true"/>
|
||||
<input type="hidden" name="_csrf" value="E40E9FF5C027499972C9CF65024778906C9844597CEA466BA7F12FD111B57968050F45514DAA93282D2DF3FB562B20866BD6" />
|
||||
<button type="submit" id="login-btn-signin" class="btn1" accesskey="l">Sign In</button>
|
||||
|
||||
|
||||
|
||||
<!-- The existence of the "rememberme" parameter at all will remember the user! -->
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<!-- end login form -->
|
||||
|
||||
<!-- begin Create Account message -->
|
||||
<div id="login-create-account">
|
||||
|
||||
</div>
|
||||
<!-- end Create Account message -->
|
||||
|
||||
<!-- begin Social Sign In component -->
|
||||
<div id="SSI-component">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- end Social Sign In component -->
|
||||
<div class="clearfix"></div> <!-- Ensure that GAuth-component div's height is computed correctly. -->
|
||||
</div>
|
||||
<!-- end login component-->
|
||||
|
||||
</div>
|
||||
<!-- end GAuth component -->
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
resizePageOnLoad(jQuery("#GAuth-component").height());
|
||||
|
||||
if(isUsernameDefined == true){
|
||||
// If the user's login just failed, redisplay the email/username specified, and focus them in the password field.
|
||||
jQuery("#password").focus();
|
||||
} else if(false == true && result != "PASSWORD_RESET_RESULT"){
|
||||
// Otherwise focus them in the username field of the login dialog.
|
||||
jQuery("#username").focus();
|
||||
}
|
||||
|
||||
// Scroll to top of iframe to fix problem where Firefox 3.0-3.6 browsers initially show top of iframe cutoff.
|
||||
location.href="#";
|
||||
|
||||
if(!embedWidget){
|
||||
jQuery('.createAccountLink').click(function(){
|
||||
send({'openLiteBox':'createAccountLink', 'popupUrl': createAccountConfigURL, 'popupTitle':'Create An Account', 'clientId':clientId});
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'97a8141f193919db',t:'MTc1NzA5OTk3MC4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user