236 lines
12 KiB
Text
236 lines
12 KiB
Text
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<title>Sign In - NIH Login</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<link rel="stylesheet" href="/certauthv3/forms/index.css">
|
|
<link rel="shortcut icon" href="https://www.nih.gov/favicon.ico" type="image/vnd.microsoft.icon">
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
|
<script language="JavaScript" type="text/javascript">
|
|
function getCookie(byname)
|
|
{
|
|
|
|
byname=byname+"=";
|
|
nlen = byname.length;
|
|
fromN = document.cookie.indexOf(byname)+0;
|
|
if((fromN) != -1)
|
|
{
|
|
fromN +=nlen
|
|
toN=document.cookie.indexOf(";",fromN)+0;
|
|
if(toN == -1) {toN=document.cookie.length;}
|
|
return unescape(document.cookie.substring(fromN,toN));
|
|
}
|
|
return null;
|
|
|
|
}
|
|
|
|
// Improved getCookie from https://www.w3schools.com/js/js_cookies.asp
|
|
function getCookie2(cname) {
|
|
var name = cname + "=";
|
|
var ca = document.cookie.split(';');
|
|
for(var i = 0; i < ca.length; i++) {
|
|
var c = ca[i];
|
|
while (c.charAt(0) == ' ') {
|
|
c = c.substring(1);
|
|
}
|
|
if (c.indexOf(name) == 0) {
|
|
return c.substring(name.length, c.length);
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
|
|
function setCookie(cname, cvalue, expireMillis) {
|
|
var d = new Date();
|
|
d.setTime(d.getTime() + expireMillis);
|
|
var expires = "expires="+d.toUTCString();
|
|
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
|
}
|
|
|
|
function resetCredFields()
|
|
{
|
|
document.CredSelectorNotice.PASSWORD.value = "";
|
|
if(document.CredSelectorNotice.USER != null && document.CredSelectorNotice.USERNAME.value != ''){
|
|
document.CredSelectorNotice.PASSWORD.focus();
|
|
} else {
|
|
document.CredSelectorNotice.USER.focus();
|
|
}
|
|
}
|
|
|
|
function bodyLoad()
|
|
{
|
|
//var ua = "Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 --regex-type=pcre --accept-regex=https://.+.gov/.*/[^./]*?(.(csv|pdf|zip|json|xml|xslx|xls|docx|doc|mobi|epub|mp3|tar|gz|ppt|CSV|ZIP|PDF|XML|htm|mp4|ogm|aac|m4a|mpv|ogg|ogm|ogv|jpeg|jpg|png|svg))?[^./]*?$";
|
|
//var referrer = document.referrer;
|
|
//var browserName = "";
|
|
//var ua = navigator.userAgent.toLowerCase();
|
|
|
|
// NOTE: session cookies not visible in DOM for some reason. Get from Request object.
|
|
//SUNU: 06/20/2017: Commenting out as its cauing intermittent issues with SAML redirects and regular apps .Escpicilaly ones with - in them
|
|
|
|
//var sessionCookie = "";
|
|
//var retryCookie = getCookie2('SSORETRY');
|
|
//
|
|
//if (retryCookie == "" && sessionCookie != "") {
|
|
// check if already logged in by setting a cookie and redirecting to target
|
|
//setCookie('SSORETRY', "1", 2000);
|
|
// unencode the target and redirect
|
|
//var targ = document.CredSelectorNotice.TARGET.value;
|
|
//if (targ != null && targ != "") {
|
|
// targ = decodeURIComponent(targ);
|
|
// if (targ.indexOf("-SM-") == 0) targ = targ.substring(4);
|
|
// window.location.href = targ;
|
|
//}
|
|
//}
|
|
|
|
var newuserval = getCookie('newuser');
|
|
if (newuserval != null){
|
|
document.CredSelectorNotice.USER.value = newuserval;
|
|
}
|
|
resetCredFields();
|
|
}
|
|
|
|
function submitForm(option)
|
|
{
|
|
var targetStr="-SM-HTTPS%3a%2f%2fauth.nih.gov%2faffwebservices%2fredirectjsp%2fSAML2redirectAzureMFA.jsp%3fSAMLRequest%3dfZFfb4MgFMW-%2fiuFdcUStkrZJtz6sSZc1rdvDXhZArCQKzAvdPv6s7k-%2bXLH0iXM755Z7DHFjXWrryrtF7-%2beYluOCjazXQ8WGBfK-%2bpYaCAatZJoE7Qw-%2bphS0kUU9sbZ4Rp0YXluoMByN4po1GwWS-%2fQ60wUdZIlCef1LCc3LK3zhCSyyCte5fUszQouioLwLEbBs-%2bxhcC7QABrsAF5uNDim3TCKSRrGJCRZSQglCSXpCwrWQxqlmRtdjXMWKMZsiBpp1URHc8Ksrt8lH3Y6KSEBW89bJfA5BwEwKFh973tnNPhO9odJ-%2brTf-%2fhKFcj9AUJ1t5RmAO1P5Vka2sSMQw3SSkAkYp5WsmW9dCBYFu68qb5WulD5eb5FPIqD3ZbkLd4-%2bHEi3nZzYdW-%2bmX-%2f2w2x5eC6fb335ef%26RelayState%3dhttps-%3a-%2f-%2fcit.nih.gov-%2fsaml_login-%3fdestination-%3dcustomer--portal%26SigAlg%3dhttp-%3a-%2f-%2fwww.w3.org-%2f2001-%2f04-%2fxmldsig--more-%23rsa--sha256%26Signature%3dp3-%2bSSiuXMv8V5vcqnIdSiR7pHgK4ZKYCTfUqgrZr4qingDpxzRyR7VUUrRnnxP-%2frzWUSyKs6jmdUkpx6K7JYi8Q93Owovj0z6DTXkNzjYo0S0EKCO2Bjh0TbJ70WcTAJcpJ7gLwIK42wmShe-%2fkUjEPdp9I95FIvCibgOOMvVRZsNUYu43mD9SVLpjQZHup0HttkreeMDv7rS1CTkXlqn7sSkKFkfJBAZl3f7a9ZA8ORPBx-%2b1Z97CNaRiSWcKfe6SeVtGuGvaJW0RFlgo-%2bNWceT2VBA7o4YjtpGy0KfnHgNExopx33G0HiDTKOUzMUIwoaSFbG-%2bPNYORFPCL-%2fTb7dBg-%3d-%3d%26SMPORTALURL%3dhttps-%3a-%2f-%2fauth.nih.gov-%2faffwebservices-%2fpublic-%2fsaml2sso%26SAMLTRANSACTIONID%3d24810cdb--e3ee887c--bcc1fccc--b0f41295--794fcb6f--3c7";
|
|
targetStr = ProcessFedTarget(targetStr);
|
|
var nextyear = new Date();
|
|
nextyear.setFullYear(nextyear.getFullYear() + 1);
|
|
document.cookie = "xauthtarget="+targetStr+"; expires=600; path=/; domain=.nih.gov";
|
|
|
|
|
|
if(option == 1)
|
|
{
|
|
document.getElementById('CredSelectorNotice').method = 'POST';
|
|
document.getElementById('CredSelectorNotice').action = "/siteminderagent/forms/unified/login_magic.fcc";
|
|
var pwd = document.CredSelectorNotice.PASSWORD.value;
|
|
var user = document.CredSelectorNotice.USERNAME.value;
|
|
if( pwd == "" || user == "" )
|
|
{
|
|
alert("Either provide userid and password or Login with PIV");
|
|
return false;
|
|
}
|
|
document.getElementById('CredSelectorNotice').submit();
|
|
}
|
|
if(option == 2)
|
|
{
|
|
document.getElementById('CredSelectorNotice').method = 'GET';
|
|
window.location.href = '/CertAuthV3/forms/NIHPIVRedirector.aspx?TARGET='+targetStr;
|
|
return false;
|
|
}
|
|
}
|
|
function ProcessFedTarget(targetStr)
|
|
{
|
|
if(targetStr.indexOf("-SM-") == 0) //trimming -SM- from the begining
|
|
{
|
|
targetStr = targetStr.substring(targetStr.indexOf("-SM-")+ 4);
|
|
}
|
|
targetStr = targetStr.replace(/-:/g,":");
|
|
targetStr = targetStr.replace(/-\//g,"\/");
|
|
targetStr = targetStr.replace(/-=/g,"=");
|
|
targetStr = targetStr.replace(/-\%/g,"\%");
|
|
targetStr = targetStr.replace(/-\?/g,"\?");
|
|
targetStr = targetStr.replace(/-;/g,";");
|
|
targetStr = targetStr.replace(/-\+/g,"\+");
|
|
targetStr = targetStr.replace(/-\#/g,"\#");
|
|
targetStr = targetStr.replace(/-\&/g,"%26");
|
|
targetStr = targetStr.replace(/-\ /g,"\ ");
|
|
targetStr = targetStr.replace(/-_/g,"_");
|
|
targetStr = targetStr.replace(/-\./g,"\.");
|
|
targetStr = targetStr.replace(/-\@/g,"\@");
|
|
targetStr = targetStr.replace(/--/g,"-");
|
|
targetStr = targetStr.replace(/-%/g,"%");
|
|
return targetStr;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
We have detected that your browser does not have javascript enabled. To continue, please enable javascript.
|
|
</noscript>
|
|
<header class="nih-header d-flex align-items-center">
|
|
<div class="container">
|
|
<div class="row justify-content-left">
|
|
<div class="col col-10 offset-xl-1">
|
|
<img src="/certauthv3/forms/images/NIHLogo.png" alt="National Institutes of Health" class="header-logo">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
<div class="container main-container">
|
|
<div class="row">
|
|
<div class="col-xl-10 offset-xl-1 main-container-columns">
|
|
<main class="nih-login-content">
|
|
<h1>Sign in</h1>
|
|
<div class="row no-gutters piv-box vertical-spaced-mid">
|
|
<div class="col-sm-6 col-12">
|
|
<h2 class="h3">Smart Card Login</h2>
|
|
<p class="piv-text">Insert your PIV card into your smart card reader or sign in using your mobile PIV-D credentials. <a href="/CertAuthV3/forms/mfa/Help.html">Need help?</a></p>
|
|
<button type="button" class="nih-blue-button vertical-spaced-mid" onclick="return submitForm(2);" aria-label="Sign in with your PIV card">Sign in</button>
|
|
</div>
|
|
</div>
|
|
<div class="row no-gutters vertical-spaced-xl pbox">
|
|
<div class="col">
|
|
<div class="d-flex align-items-end justify-content-between horizontal-row">
|
|
<div>
|
|
<img src="/certauthv3/forms/images/NIHLoginimage.png" alt="Mobile Image" style="height:80px; width:80px">
|
|
</div>
|
|
<div class="imagetext">
|
|
<h3>Authenticator App</h3><p>Use your account credentials and check your phone for a one-time code or push notification. <a href="/CertAuthV3/forms/mfa/Help.html">Need help?</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<form AUTOCOMPLETE = "off" method="post" name="CredSelectorNotice" id="CredSelectorNotice" class="nih-login-form vertical-spaced-mid container">
|
|
<input type="hidden" name="target" VALUE="https://auth.nih.gov/xauthradius/Redirector.asp">
|
|
<input type="hidden" name="SMAUTHREASON" VALUE="0">
|
|
<input type="hidden" name="GUID" VALUE="">
|
|
<input type="hidden" name="TYPE" VALUE="33554433">
|
|
<input type="hidden" name="REALMOID" VALUE="06-383e0377-10f3-4398-a27f-878dc03cb1b7">
|
|
<div class="d-flex align-items-end justify-content-between horizontal-row">
|
|
<div class="d-flex flex-column flex-grow-1 justify-content-center account-login">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<label for="username"><b>Username</b></label>
|
|
</div>
|
|
<input type="text" id="USERNAME" name="USERNAME" required autofocus>
|
|
</div>
|
|
<div class="d-flex flex-column-reverse flex-grow-1 account-password justify-content-center account-login">
|
|
<input name="PASSWORD" id="PASSWORD" type="password" required autocomplete="new-password">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<label for="account_password"><b>Password</b></label>
|
|
<a href="/CertAuthV3/forms/passwordlinks.html" class="forgot-password"><b>Forgot Password?</b></a>
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="nih-white-button vertical-spaced-sm" onclick="return submitForm(1);">Sign in</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<p class="h4 vertical-spaced"><a href="/CertAuthV3/forms/passwordlinks.html"><b>Trouble signing in?</b></a></p>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
<aside
|
|
role="doc-notice"
|
|
class="container nih-warning-content no-gutters"
|
|
>
|
|
<div class="col-xl-10 offset-xl-1">
|
|
<h2 class="warning-header">WARNING NOTICE:</h2>
|
|
<p class="warning-text">For public facing web pages to which the public has privileged access, e.g., clinical trial or adverse effects systems where users/patients are logging in to enter PII/PHI: You are accessing a U.S. Government web site which may contain information that must be protected under the U.S. Privacy Act or other sensitive information and is intended for Government authorized use only. Unauthorized attempts to upload information, change information, or use of this web site may result in disciplinary action, civil, and/or criminal penalties. Unauthorized users of this web site should have no expectation of privacy regarding any communications or data processed by this web site. Anyone accessing this web site expressly consents to monitoring of their actions and all communication or data transitioning or stored on or related to this web site and is advised that if such monitoring reveals possible evidence of criminal activity, NIH may provide that evidence to law enforcement officials.</p><p class="warning-text"><a href="https://www.nih.gov/web-policies-notices">NIH Web Policies and Notices</a></p>
|
|
<p class="warning-text"><a href="/certauthv3/forms/help/NIHLoginPolicies.html">NIH Login Service Privacy Policy</a></p>
|
|
<p class="warning-text"><a href="https://www.hhs.gov/vulnerability-disclosure-policy/index.html">HHS Vulnerability Disclosure</a></p>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
<footer class="nih-footer">
|
|
<p>For assistance, call the NIH IT Service Desk at <br><span class="text-nowrap text-break"><a href="tel:301-496-4357">301-496-4357</a> (6-HELP)</span> or <span class="text-nowrap"><a href="tel:866-319-4357">866-319-4357</a> (toll-free)</span></p>
|
|
<img src="/certauthv3/forms/images/HHSLogo.svg" class="footer-logo-hhs" alt="HHS">
|
|
<img src="/certauthv3/forms/images/NIHLogo.png" alt="NIH" class="footer-logo-nih-small">
|
|
</footer>
|
|
</body>
|
|
</html>
|