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



Similar documents
Website Login Integration

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

Outline of CSS: Cascading Style Sheets

mpdf Example 37. Barcodes <?php

Create Your own Company s Design Theme

A send-a-friend application with ASP Smart Mailer

Web layout guidelines for daughter sites of Scotland s Environment

Installation & Configuration Guide Version 2.2

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

Insight Student for Chromebooks - Auto Configuration

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

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

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

HTML Tables. IT 3203 Introduction to Web Development

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

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

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

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

Web Design I. Spring 2009 Kevin Cole Gallaudet University

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

CSS - Cascading Style Sheets

Introduction to Adobe Dreamweaver CC

Fortigate SSL VPN 3.x With PINsafe Installation Notes

How to Display Weather Data on a Web Page

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

Web Design and Development ACS Chapter 9. Page Structure

Lab 1: Windows Azure Virtual Machines

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Responsive Web Design: Media Types/Media Queries/Fluid Images

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

Fortigate SSL VPN 4 With PINsafe Installation Notes

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

Appendix for Tx5xx and P85x1 manuals

Kentico CMS 7.0 Tutorial ASPX

Web Development 1 A4 Project Description Web Architecture

Campaign Guidelines and Best Practices

OneLogin Integration User Guide

ITNP43: HTML Lecture 4

Responsive Design

The MVC Programming Model

CSS for Page Layout. Key Concepts

How to code, test, and validate a web page

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

How To - Implement Single Sign On Authentication with Active Directory

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Using Style Sheets for Consistency

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

How to Properly Compose HTML Code : 1

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.

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

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

2. Modify default.aspx and about.aspx. Add some information about the web site.

AEGEE Podio Guidelines

Pay with Amazon Integration Guide

Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief

ArtfulBits Password Reset Web Part

CSS Techniques: Scrolling gradient over a fixed background

escan SBS 2008 Installation Guide

Managing Web Authentication

Creating a Resume Webpage with

With Wakanda Cloud, you can publish a solution you created with Wakanda on the cloud. Wakanda Cloud allows you to:

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

Using Form Tools (admin)

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

SAML Authentication Quick Start Guide

Building A Very Simple Web Site

Guide to Integrate ADSelfService Plus with Outlook Web App

Mobile Web Site Style Guide

EFT Server in the Windows Event Viewer

WEB PROGRAMMING LAB (Common to CSE & IT)

GuestAir Administrators Guide

Configuring IBM WebSphere Application Server 7.0 for Web Authentication with SAS 9.3 Web Applications

Create Webpages using HTML and CSS

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

Web Development and Core Java Lab Manual V th Semester

Style & Layout in the web: CSS and Bootstrap

Configuring Sponsor Authentication

Using Internet or Windows Explorer to Upload Your Site

Magento Responsive Theme Design

Novell Identity Manager

OWASP Application Security Building and Breaking Applications

İNTERNET TABANLI PROGRAMLAMA- 13.ders GRIDVIEW, DETAILSVIEW, ACCESSDATASOURCE NESNELERİ İLE BİLGİ GÖRÜNTÜLEME

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

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

In this topic we will cover the security functionality provided with SAP Business One.

JJY s Joomla 1.5 Template Design Tutorial:

QQ WebAgent Quick Start Guide

User Management Tool 1.5

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

An overview of configuring WebEx for single sign-on. To configure the WebEx application for single-sign on from the cloud service (an overview)

Selectors in Action LESSON 3

8 STEPS TO CODE KILLER RESPONSIVE S

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Transcription:

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

I. Browse the web applications using subdomains: After creating the FBA web applications you need to simulate browsing the web applications with subdomains by the following steps: 1. Edit the hosts file which is located in C:\windows\System32\drivers\etc. 2. Add your subdomains using this format regardless the port numbers (IP Subdomain): 10.2.10.49 sub1.domain.com 10.2.10.49 sub2.domain.com 3. Save and close the hosts file. 4. Start IIS and edit bindings for the web applications. 5. Add Site Binding for each one with different subdomain name ex: sub1, sub2 6. Close the IIS and open SharePoint central administration. 7. Go to Application Management, you will find Configure alternate access mappings under Web Applications.

8. Edit public URLs for your web applications 9. Now you can browse the web applications using subdomains.

II. Change machine key for all web applications The web applications and SecurityTokenServiceApplication must have the same machine key. This can be done using the following steps: 1. Start IIS and select your web application the Machine Key 2. Make sure you applied the following settings Note: These Keys are generated automatic. You can get new ones from the Generate Keys at the right Actions menu.

3. Copy these keys to the other applications. Also copy it to SecurityTokenServiceApplication which is located under SharePoint Web Services. III. Creating custom sign in page Start visual studio. Create new project of type Empty SharePoint Project. Then add new item and select application page. Add reference to Microsoft.SharePoint.IdentityModel.dll you will find it under c:\windows\assembly\gac_msil\microsoft.sharepoint.identitymodel\14.0.0.0 71e9bce111 e9429c\ Add the following Code to the aspx page or add your custom design for the login <html> <head id="head1" runat="server"> <title>login Page </title> <style> body color: #000000; font: 12px/1.4 arial,freesans,helvetica,sans-serif; margin: 0; #LoginBox margin: 0 auto; min-width: 200px; padding: 1em; width: 470px; margin-top: 100px; #LoginBox.Form-Content -moz-border-radius: 0.4em 0.4em 0.4em 0.4em; background-color: #FFFFFF; border: 1px solid #BBBBBB; min-height: 50px; padding: 1em; position: relative; #LoginBox.Form-Content h2 border-bottom: medium none; color: #333333; font-size: 1.6em; margin: 0 0 1em; #LoginBox.LoginTextField -moz-border-radius: 0.3em 0.3em 0.3em 0.3em; border: 1px solid #DDDDDD; margin: 0;

padding: 2px; width: 160px; #LoginBox.LoginButton -moz-border-radius: 0.3em 0.3em 0.3em 0.3em; line-height: 1.2; margin: 10px 10px 0 0; padding: 0 0.5em; </style> </head> <body> <form id="form1" runat="server"> <div style="clear: both;"> </div> <div id="loginbox"> <div class="form-content"> <h2> Login</h2> <table width="100%" cellpadding="0" cellspacing="1"> <td style="width: 80px; white-space: nowrap; line-height: 2.4;"> UserID: <asp:textbox ID="UserName" CssClass="LoginTextField" runat="server"></asp:textbox> <td style="width: 80px; white-space: nowrap; line-height: 2.4;"> Password: <asp:textbox ID="Password" CssClass="LoginTextField" runat="server" TextMode="Password"></asp:TextBox> <asp:label ID="lblError" runat="server"></asp:label> <asp:button ID="Login" runat="server" CssClass="LoginButton" OnClick="Login_Click" Text="Submit" /> </table> <p> </p>

</div> </div> </form> </body> </html> In your code behind file (.cs file) make sure the class inherits from System.Web.UI.Page And add the following code protected void Login_Click(object sender, EventArgs e) if (!(UserName.Text.Length > 0 && Password.Text.Length > 0)) lblerror.text = "User Name or Password can not be empty!"; else bool status = SPClaimsUtility.AuthenticateFormsUser(Context.Request.UrlReferrer, UserName.Text, Password.Text); is created. application resides if (!status)// if auth failed lblerror.text = "Wrong Userid or Password"; else //if success //call SetAuthCookie method to log in. A forms authentication cookie // Domain name in the cookie defaults to the subdomain where the FormsAuthentication.SetAuthCookie(UserName.Text, false); domain //modify the Domain attribute of the cookie to the second level System.Web.HttpCookie MyCookie = System.Web.Security.FormsAuthentication.GetAuthCookie(User.Identity.Name.ToString(), false); MyCookie.Domain = "mauritius.gov";//the second level domain name Response.AppendCookie(MyCookie); Response.Redirect("/Pages/default.aspx"); //Use site url Deploy the new the project to your web application and make sure from the setting that this sign in page is set as the default sign in page.