Egnyte Help Desk

Integrate Egnyte Login Directly from Your Company's Website

If your company website is http://www.mycompany.com and you have chosen to register your Egnyte account at http://mycompany.egnyte.com, you can choose to have your users’ login directly from your company website. Normally, users would go to http://mycompany.egnyte.com to login to your company Egnyte account. If you would like to skip this login page, and have users login directly from your company website, please follow these steps:

1. Add a login and password box to your website
2. Within the login box code, place the following html code fragment. Note that you should replace mycompany with the sub-domain you have signed up for. So, if you access Egnyte from http://abc.egnyte.com, then use abc instead of mycompany.

 

<html>
<head/>
<body>
<form name="frmlogin"
id="frmlogin"
method="post"
action="https://mycompany.egnyte.com/loginDomain.do">
<input id="j_username" type="text" name="user.userName" />
<input id="j_password" type="password" name="user.password" />
<button name="submit" value="submit" type="submit" />
</form>
</body>
</html>

 

If you require domain, login, and password fields as displayed below, please use the next set of HTML code. 

login.png

 

<html>
<head>
<style>
*{
font: 12px arial, sans-serif;
}
</style>
<script>
function login(){
var domainName = document.getElementById("j_domain").value;
if(domainName == '' || document.getElementById("j_username").value == '' || document.getElementById("j_password").value == ''){
return;
}
document.frmlogin.action = "https://" + domainName + ".egnyte.com/loginDomain.do";
document.frmlogin.submit();
}
</script>
</head>
<body>
<form name="frmlogin" id="frmlogin" method="post" onsubmit="login();">
Domain: <input id="j_domain" type="text" />&nbsp;&nbsp;
Username: <input id="j_username" type="text" name="user.userName" />&nbsp;&nbsp;
Password: <input id="j_password" type="password" name="user.password" />&nbsp;&nbsp;
<input id="btnLogin" name="btnLogin" value="Login" type="submit" text="Login" />
</form>
</body>
</html>

 

Egnyte Community

Egnyte Community

Want to connect with other Egnyte users and our Egnyte team? Share ideas and ask questions in our Community.

Help Improve Egnyte

Every day we work hard to make Egnyte better with feedback from users to improve our products. Sign up to participate in Egnyte User Studies.