Website Login Integration



Similar documents
Web Development 1 A4 Project Description Web Architecture

Intell-a-Keeper Reporting System Technical Programming Guide. Tracking your Bookings without going Nuts!

In order for the form to process and send correctly the follow objects must be in the form tag.

HTML Tables. IT 3203 Introduction to Web Development

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

Implementing Specialized Data Capture Applications with InVision Development Tools (Part 2)

How to use SSO with SharePoint 2010 (FBA) using subdomains. Moataz Esmat EXT.1386

Script Handbook for Interactive Scientific Website Building

Outline of CSS: Cascading Style Sheets

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

2- Forms and JavaScript Course: Developing web- based applica<ons

Yandex.Widgets Quick start

Fortigate SSL VPN 4 With PINsafe Installation Notes

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

JavaScript and Dreamweaver Examples

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Internet Technologies

Fortigate SSL VPN 3.x With PINsafe Installation Notes

Further web design: HTML forms

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Website Planning Checklist

InPost UK Limited GeoWidget Integration Guide Version 1.1

Create Your own Company s Design Theme

Making Web Application using Tizen Web UI Framework. Koeun Choi

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

<?php if (Login::isLogged(Login::$_login_front)) { Helper::redirect(Login::$_dashboard_front); }

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Visualizing a Neo4j Graph Database with KeyLines

A send-a-friend application with ASP Smart Mailer

Fortis Theme Update Guide

CS412 Interactive Lab Creating a Simple Web Form

MASTERTAG DEVELOPER GUIDE

WEB PROGRAMMING LAB (Common to CSE & IT)

PLAYER DEVELOPER GUIDE

HTML Forms and CONTROLS

Introduction to Adobe Dreamweaver CC

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Interspire Website Publisher Developer Documentation. Template Customization Guide

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

MCH Strategic Data Best Practices Review

ios App Development Using Cordova

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Visualizing an OrientDB Graph Database with KeyLines

Using Form Tools (admin)

Pay with Amazon Integration Guide

CarTrawler AJAX Booking Engine Version: 5.10 Date: 01/10/13.

The purpose of jquery is to make it much easier to use JavaScript on your website.

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Embedding a Data View dynamic report into an existing web-page

How to code, test, and validate a web page

Introduction to XHTML. 2010, Robert K. Moniot 1

Web Reporting by Combining the Best of HTML and SAS

jquery Tutorial for Beginners: Nothing But the Goods

JavaScript: Arrays Pearson Education, Inc. All rights reserved.

QQ WebAgent Quick Start Guide

Lab 5 Introduction to Java Scripts

How to Properly Compose HTML Code : 1

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Using Style Sheets for Consistency

Sample HP OO Web Application

Client-side Web Engineering From HTML to AJAX

Visualization: Combo Chart - Google Chart Tools - Google Code

Working with forms in PHP

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Campaign Guidelines and Best Practices

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Communication. Container-Exchange

Create Webpages using HTML and CSS

Single Page Web App Generator (SPWAG)

The MVC Programming Model

Style & Layout in the web: CSS and Bootstrap

<script type="text/javascript"> var _gaq = _gaq []; _gaq.push(['_setaccount', 'UA ']); _gaq.push(['_trackpageview']);

ANGULAR JS SOFTWARE ENGINEERING FOR WEB SERVICES HASAN FAIZAL K APRIL,2014

Web Design I. Spring 2009 Kevin Cole Gallaudet University

SAML Authentication Quick Start Guide

mpdf Example 37. Barcodes <?php

Inserting the Form Field In Dreamweaver 4, open a new or existing page. From the Insert menu choose Form.

CSS for Page Layout. Key Concepts

Configuring iplanet 6.0 Web Server For SSL and non-ssl Redirect

LAB MANUAL CS (22): Web Technology

CIS 467/602-01: Data Visualization

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Understanding Cross Site Scripting

InternetVista Web scenario documentation

Setting up an Apache Server in Conjunction with the SAP Sybase OData Server

CST 150 Web Design I CSS Review - In-Class Lab

econtrol 3.5 for Active Directory & Exchange Self-Service Guide

Transcription:

SSO Widget Website Login Integration October 2015

Table of Contents Introduction... 3 Getting Started... 5 Creating your Login Form... 5 Full code for the example (including CSS and JavaScript):... 7 2

Introduction This document explains how to add a basic Applied CSR24 Self-Service Portal Customer Login to your organization s website, which may look similar to what is shown below. Adding this login on your organization s website gives your clients a fast, easy way to access CSR24 Self-Service portal. These instructions are intended for web designers, and they detail the process for adding a simple CSR24 Self-Service login to an existing web page. In order to follow these directions, you must have general knowledge of HTML, as well as knowledge of HTML forms, which are used to implement the client login. The code to implement the login form uses a mix of required and optional values. 3

4

Getting Started This document focuses on the SSO Widget itself, the example form contains the following elements: The Customer Login label The login name text input The password text input A Remember Me checkbox A Sign On or Login button Register Account and Forgot Details links. <div class="login"> <h1>customer Login</h1> <form name="portalsignon" id="portalsignon" method="post" action="https://portal.csr24.com/mvc"> <input type="hidden" name="agencykey" value="1526194560" /> <input type="hidden" name="subagencykey" value="" /> <input type="hidden" name="errorurl" value="https://portal.csr24.com/examples/signonerror.htm" /> <input type="text" name="username" size="99" placeholder="username" /> <input type="password" name="password" size="18" placeholder="password" /> <input type="checkbox" name="rememberme" value="remember"/><span class="rememberme">remember Me</span> <input type="button" name="signon" value="sign On" onclick="usersignon();" /> <a href="javascript:altlink('signup');">register Account</a> <a href="javascript:altlink('forgot');">forgot Details?</a> </form> </div> Note: For Canadian brokers, use https://portal.csr24.ca/mvc, and for UK brokers, use https://portal.csr24.co.uk/mvc. In addition, there are a number of hidden input fields some required and some optional. This is the main HTML code used for the example. Note that the JavaScript calls are included in the example, but do not require any updates. The full code for the example, including the JavaScript and CSS styling, is at the end of this document. You can update the CSS styles to align with your corporate branding. This document discusses the example shown above, line by line. Creating your Login Form The first element creates a div to contain your form, specifies a CSS class to provide a simple background color and positioning, and adds some header text as a 5

description. None of these are required, but they are recommended. <div class="login"> <h1>customer Login</h1> </div> The next step creates the HTML form element itself. The first step is to add an HTML form element to your webpage. The form s method is set to post to the CSR24 Self-Service Portal: <form name="portalsignon" id="portalsignon" method="post" action="https://portal.csr24.com/mvc"> This element is required. You may replace the standard signon URL shown above (https://portal.csr24.com/mvc) with your organizations personalized URL obtained from Applied. Note: For Canadian brokers, use https://portal.csr24.ca/mvc, and for UK brokers, use https://portal.csr24.co.uk/mvc. Next there are several hidden values passed in. Hidden values are not visible on the webpage. Some of these values are required and some are optional. For optional values, you may omit the entire line if desired. The AgencyKey input value is required and represents your Agency Portal Key. The value shown, "1526194560" is for example purposes only. You should use your Applied assigned Agency Key value instead. If you do not know this value, please contact your Applied Account Manager. <input type="hidden" name="agencykey" value="1526194560" /> The SubAgencyKey value is also not visible to the customer and is optional. This value is used for sub-agencies or branches that you may have defined. This example does not specify a value. <input type="hidden" name="subagencykey" value="" /> The "ErrorURL" parameter is optional and specifies a URL to which a customer is redirected if an incorrect user ID or password is entered. If you would like to handle the error within your site, you must specify a URL to which to redirect the login error. <input type="hidden" name="errorurl" value="https://portal.csr24.com/mvc" /> The value in this example above redirects to the CSR24 portal. Replace that URL with your own. 6

If a custom ErrorURL value is not specified, the customer is redirected to the default signon page for the Self-Service portal (https://portal.csr24.com/mvc ) where the login error displays. This is also the case if you choose not to add this line. Next, add the Username and Password inputs to the webpage for the username and password. The Username value can be up to 99 characters and must match a user name already created in the Self-Service portal. The "size" value of 99 should not be changed from what is shown. The Password value may be up to 18 characters long. This "size" value should also not be changed from what is shown. <input type="text" name="username" size="99" placeholder="username" /> <input type="password" name="password" size="18" placeholder="password" /> The next line adds a Remember Me checkbox to the page. This is not required, and in this example is using JavaScript to create/set a user cookie when the Submit button is clicked if the item is checked. <input type="checkbox" name="rememberme" value="remember"/><span class="rememberme">remember Me</span> Add a button to submit the customer login information to the CSR24 portal to be verified. <input type="button" name="signon" value="sign On" onclick="usersignon();" /> The last two elements in the example code are optional and are using JavaScript calls for their functionality. <a href="javascript:altlink('signup');">register Account</a> <a href="javascript:altlink('forgot');">forgot Details?</a> Full code for the example (including CSS and JavaScript): <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <!-- Copy this section into the head of your document --> <style> /*Login Container*/.Login { 7

background-color:#1180d7; width:210px; height:280px; color:#fff; padding:15px; /*Login Title*/.Login h1 { font-size:17px; text-align:left; margin:20px 0 0; font-weight:normal; /*links*/.login a { color:#fff; margin:12px 0; display:block; text-align:center; /*User Name and Password*/.Login input { width:195px; margin:20px 0 0; border:none; padding:10px 5px 5px 10px; color:#000; /*Sign on Button*/.Login input[type="button"] { width: 210px; margin: 10px 0 0; border: none; padding: 10px 5px; color: #1180d7; text-align: center; font-size: 14px; background-color: #fff; /*Container background color*/ /*container width*/ /*container height*/ /*text color*/ /*Title Font size*/ /*Link Color*/ /*Button text color*/ /*Button text alignment*/ /*Button font size*/ /*Button background color*/.login input[type="checkbox"] {width:30px; float:left;.login.rememberme {text-align:left; display:block; margin-top:17px; float:left; </style> <!-- End style copy--> <!-- Begin script copy--> <script language="javascript"> function setcookie(cookiename, cookievalue) { 8

document.cookie = encodeuricomponent(cookiename) + '=' + encodeuricomponent(cookievalue) + '; expires=fri, 31 Dec 9999 23:59:59 GMT' + '; path=/'; function getcookie(cookiename) { return decodeuricomponent(document.cookie.replace(new RegExp("(?:(?:^.*;)\\s*" + encodeuricomponent(cookiename).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$) ^.*$"), "$1")) null; function usersignon() { if (document.portalsignon.username.value > '' && document.portalsignon.password.value > '') { if (document.portalsignon.rememberme.checked == true) { setcookie('username', document.portalsignon.username.value); else { setcookie('username', ''); document.portalsignon.submit(); else { alert('please enter a user name and password'); document.portalsignon.username.focus(); function altlink(linkname) { if (linkname == 'signup') surl = 'https://portal.csr24.com/mvc/portal/signmeup'; if (linkname == 'forgot') surl = 'https://services.csr24.com/portal/reset/' + document.portalsignon.agencykey.value + '/Password?language=EN&urlReferrer=' + encodeuricomponent(parent.location.href); document.portalsignon.action = surl; document.portalsignon.submit(); function documentready() { var saveduserid = getcookie('username'); if (saveduserid > '') { document.portalsignon.username.value = saveduserid; document.portalsignon.rememberme.checked = true; </script> <!-- End script copy--> </head> <body onload="documentready();"> 9

<!--Start of Widget. Place copy where Login to be displayed.--> <div class="login"> <h1>customer Login</h1> <form name="portalsignon" id="portalsignon" method="post" action="https://portal.csr24.com/mvc"> <input type="hidden" name="agencykey" value="1526194560" /> <input type="hidden" name="subagencykey" value="" /> <input type="hidden" name="culture" value="en-us" /> <input type="hidden" name="errorurl" value="https://portal.csr24.com/examples/signonerror.htm" /> <input type="text" name="username" size="10" placeholder="username" /> <input type="password" name="password" size="10" placeholder="password" /> <input type="checkbox" name="rememberme" value="remember"/><span class="rememberme">remember Me</span> <input type="button" name="signon" value="sign On" onclick="usersignon();" /> <a href="javascript:altlink('signup');">register Account</a> <a href="javascript:altlink('forgot');">forgot Details?</a> </form> </div> <!--End of Widget. End Copy--> </body> </html> 10