preLoginSample.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!-- Licensed Materials - Property of IBM
  2. IBM Cognos Products: Cognos Analytics
  3. (C) Copyright IBM Corp. 2016, 2017
  4. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. -->
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <meta charset="utf-8">
  10. <title>Login Script Using the CMS Login API</title>
  11. <meta name="description" content="Login Script Using the CMS Login API">
  12. <script src="loginScriptSample.js"></script>
  13. </head>
  14. <body>
  15. When viewing the sample page with embedded iFrames (<a href="iFrameSample.html">here</a>), Cognos will recognize that login has occurred and load the embedded content.</p>
  16. <p>You can use this script with hardcoded credentials, for example if the content is on a specific user's account,<br>
  17. or you can use a login form so users can input their own credentials if the content is shared.</p>
  18. <form action="#">
  19. <fieldset>
  20. <legend>Sample Form to Login to Cognos Analytics</legend>
  21. Namespace (change to your own):<br/>
  22. <!-- Add your namespace as an option -->
  23. <select size="1" name="namespace">
  24. <option value="CognosEx">CognosEx (Example)</option>
  25. <option value="LDAP">LDAP (Example)</option>
  26. </select><br/>
  27. UserID:<br/>
  28. <input type="text" name="userid"/><br/>
  29. Password:<br/>
  30. <input type="password" name="password"/><br/>
  31. <!-- Calls login() function in loginScriptSample.js -->
  32. <input type="button" name="Login" onclick="login();" value="Login"/>
  33. </fieldset>
  34. </form>
  35. </body>
  36. </html>