Created
March 8, 2020 00:59
-
-
Save rogerscuall/a00a81c6d9d10f1f1e9c117ac37415d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<link href="https://d3oia8etllorh5.cloudfront.net/20191106223759/css/bootstrap.min.css" rel="stylesheet" | |
media="screen" /> | |
<link href="https://d3oia8etllorh5.cloudfront.net/20191106223759/css/cognito-login.css" rel="stylesheet" | |
media="screen" /> | |
<title>Signin</title> | |
<script src="https://d3oia8etllorh5.cloudfront.net/20191106223759/js/amazon-cognito-advanced-security-data.min.js" ></script> | |
<script> | |
function getAdvancedSecurityData(formReference) { | |
if (typeof AmazonCognitoAdvancedSecurityData === "undefined") { | |
return true; | |
} | |
// UserpoolId is not available on frontend for springboard. We do not use userPoolId | |
// anyway other than put in context data. | |
var userPoolId = ""; | |
var clientId = getUrlParameter("client_id"); | |
var username = ""; | |
var usernameInput = document.getElementsByName("username")[0]; | |
if (usernameInput && usernameInput.value) { | |
username = usernameInput.value; | |
} | |
var asfData = AmazonCognitoAdvancedSecurityData.getData(username, userPoolId, clientId); | |
if (typeof asfData === "undefined") { | |
return true; | |
} | |
if (formReference && formReference.cognitoAsfData) { | |
formReference.cognitoAsfData.value = asfData | |
} | |
return true; | |
} | |
function getUrlParameter(name) { | |
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | |
var results = regex.exec(location.search); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
} | |
function onSubmit(evt, formRef) { | |
formRef.querySelector('button[type="submit"]').disabled = true; | |
if (!!formRef.submitted) { | |
evt.preventDefault(); | |
return false; | |
} else { | |
formRef.submitted = true; | |
return getAdvancedSecurityData(formRef); | |
} | |
} | |
</script> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="modal-dialog"> | |
<div class="modal-content background-customizable modal-content-mobile"> | |
<div> | |
<div class="banner-customizable"> | |
<center> | |
</center> | |
</div> | |
</div> | |
<div class="modal-body"> | |
<p align="center">An error was encountered with the requested page.</p> | |
<br> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> | |
2020-03-08T00:48:15.037Z ERROR Error unmarshaling claims | |
2020-03-08T00:48:15.037Z ERROR invalid character '<' looking for beginning of value | |
2020-03-08T00:48:15.037Z ERROR invalid character '<' looking for beginning of value | |
2020-03-08T00:48:15.037Z INFO |400| 173.375492ms /auth {"statusCode": 400, "request": 24, "latency": "173.375492ms", "avgLatency": "7.267611ms", "ipPort": "192.168.2.75:46284", "method": "GET", "host": "vouch.mydomain.com", "path": "/auth", "referer": "https://vlm-test1.auth.us-east-1.amazoncognito.com/login?client_id=5viapbmum1ftg896opd1pau77t&redirect_uri=https%3A%2F%2Fvouch.mydomain.com%2Fauth&response_type=code&scope=openid+email+profile&state=xBc46rfNPN6vpCF3t9cILgyQVS5hf"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment