Membership in ASP.Net...if only Presented by: Patrick Hynds President, CriticalSites Microsoft Regional Director.

Slides:



Advertisements
Similar presentations
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa Overview of ASP.NET 2.0.
Advertisements

Module 1: Introduction to SQL Server Reporting Services.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Forms Authentication, Users, Roles, Membership Ventsislav Popov Crossroad Ltd.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Membership, Role Manager and Profile Membership, Role Manager and Profile Matt Gibbs ASP.NET Development Manager.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Security in SQL Jon Holmes CIS 407 Fall Outline Surface Area Connection Strings Authenticating Permissions Data Storage Injections.
Jonas Thomsen, Ph.d. student Computer Science University of Aarhus Best Practices and Techniques for Building Secure Microsoft.
Deploying Visual Studio Team System 2008 Team Foundation Server at Microsoft Published: June 2008 Using Visual Studio 2008 to Improve Software Development.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
May 30 th – 31 st, 2006 Sheraton Ottawa. Microsoft Certificate Lifecycle Manager Saleem Kanji Technology Solutions Professional - Windows Server Microsoft.
CONFIGURING WINDOWS SERVER MIS 424 Professor Sandvig.
Delivering Excellence in Software Engineering ® EPAM Systems. All rights reserved. ASP.NET Authentication.
Cross Platform Mobile Backend with Mobile Services James
DotNetNuke v4 on ASP.NET v2 Stan Schultes Stan Schultes Enterprise architect / application developer Enterprise architect / application developer Conference.
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
ASP.NET Programming with C# and SQL Server First Edition
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Forms Authentication, Users, Roles, Membership Svetlin Nakov Telerik Corporation
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Four Configuring Outlook and Outlook Web Access.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
The Windows NT ® 5.0 Public Key Infrastructure Charlie Chase Program Manager Windows NT Security Microsoft Corporation.
Sofia, Bulgaria | 9-10 October Developing Custom ASP.NET Providers For Membership And Role Manager Goksin Bakir Yage Ltd Microsoft Regional Director, MEA.
Goals One ASP.NET Membership story – Web APIs and Web Apps Profile. Extensibility allows for non SQL persistence model. Improve unit testability of.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Part II - Microsoft ® Project 2000 Enterprise Deployment Templates.
Dr. Mustafa Cem Kasapbaşı Security in ASP.NET. Determining Security Requirements Restricted File Types.
Vinay Dhareshwar.  Introduction  Membership Service  Login Controls  Role Management Service 2.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Module 11: Securing a Microsoft ASP.NET Web Application.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
ASP.NET 2.0: A Look Inside Membership, Role Management, and Profiles in ASP.NET 2.0 Sam Spencer Program Manager Microsoft – Web Platform & Tools DEV312.
Role Management in.NET Shree Shalini Pusapati CS /17/20151.
CRM in Education: Raising Standards. Saving Time. Presented by: Daniel Petersen Director of Business Solutions Applied Tech.
Understanding StarTeam Enterprise Advantage Course #4124.
SharePoint in the Education Space Presented by: Daniel Petersen Director of Business Solutions Applied Tech.
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code.
Peter Peng. Agenda Introducing A simple example More complex examples (in part 2) Developing (in part 3)
1 Objectives Discuss File Services in Windows Server 2008 Install the Distributed File System in Windows Server 2008 Discuss and create shared file resources.
Introduction to Active Directory
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
A Lap Around New Enhancements for Web Developers in Visual Studio 2005 Alexander Holy Developer Evangelist, Microsoft EMEA
Security. Agenda ASP.NET security basics AuthenticationAuthorization Security principals Forms authentication Membership service Login controls Role Management.
Microsoft ® Official Course Module 9 Working with Business Connectivity Services.
ASP.NET 2.0 Security Alex Mackman CM Group Ltd
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
SQL Server Reporting Services for.NET Developers Bret Stateham
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
Building Enterprise Applications Using Visual Studio®
Integrating Enterprise Applications Into SharePoint® Portal Server
Authentication and Authorisation in ASP.Net
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Office 365 Development.
Role Management in .net Vinay Dhareshwar.
SQL Server 2005 Reporting Services
Windows Forms in Visual Studio 2005: An in-depth look at key features
Mark Quirk Head of Technology Developer & Platform Group
Security - Forms Authentication
Presentation transcript:

Membership in ASP.Net...if only Presented by: Patrick Hynds President, CriticalSites Microsoft Regional Director

Agenda Membership Provider Model Custom Providers –SOA based membership example –Making a custom provider do what the standard ones won’t (Demo)

Membership API Included Membership providers –SQL Server (and SQL Express) –Active Directory (Windows) –Access (kind of…) Installs as a Visual Studio 2005 VSI template Custom Membership providers –Oracle –MySQL –SQLLite3 –Others + whatever you write yourself… Membership Service

Service for managing users and credentials –Declarative access via Web Site Admin Tool –Programmatic access via Membership and MembershipUser classes Membership class provides base services MembershipUser class represents users and provides additional services Provider-based for flexible data storage

Membership Service (cont.) Vastly simplifies forms authentication –Provides logic for validating user names and passwords, creating accounts, and more –Provides data store for storing credentials, e- mail addresses, and other membership data

Membership Schema Membership API Membership Data SQL Server Other Data Stores Membership Providers Active Directory LoginLoginStatusLoginViewOther Controls MembershipMembershipUser SqlMembershipProvider ActiveDirectory- MembershipProvider Other Providers

LoginView...

The Membership Class Provides static methods for performing key membership tasks –Creating and deleting users –Retrieving information about users –Generating random passwords –Validating logins Also includes read-only static properties for acquiring data about provider settings

The MembershipUser Class Represents individual users registered in the membership data store Includes numerous properties for getting and setting user info Includes methods for retrieving, changing, and resetting passwords Returned by Membership methods such as GetUser and CreateUser

Configuring the SQL Membership Provider

Provider Model Enable new functionality in a transparent fashion Enable extensibility for –Web services –Browser based “Atlas” clients –Smart clients Application services as pluggable building blocks Decoupled via configuration Use structural classes for your own features

Provider Model Feature Lifecycle Feature config. Static feature class Provider instances

Provider Configuration Membership providers support a number of configuration settings –How should passwords be stored (cleartext, hashed, encrypted)? –Should password recovery be enabled? –Must each user have a unique address? Exposed as properties of provider class Initialized from CONFIG files

public class QuotationsConfiguration : ConfigurationSection { [ConfigurationProperty("providers")] [ConfigurationProperty("providers")] public ProviderSettingsCollection Providers public ProviderSettingsCollection Providers { get; get; } [ConfigurationProperty("defaultProvider", [ConfigurationProperty("defaultProvider", DefaultValue = "StaticQuotationProvider")] DefaultValue = "StaticQuotationProvider")] public string DefaultProvider public string DefaultProvider { get; get; set; set; }} Provider Model Feature Configuration

When to Build a Provider Physical 3-tier deployments –May not allow web server to connect directly to SQL Server Schema isn’t working for you Your data isn’t in a supported format or repository You need that killer feature that isn’t provided by existing providers

Projecting Membership Design Issues Authenticating to the web service –Not all methods should be public Serialization of MembershipUser –Read-only properties don’t serialize WebMethod parameter constraints –Collection types and [out] parameters Selecting from multiple providers –Choosing a non-default provider

Projecting Membership 3-Tier Flow Web server Webservice provider Webservice server.asmx Membership wrapper SQL provider Application code

Projecting Membership Authenticated Flow Internet client Application Webservice server.asmx Membership wrapper SQL provider.asmx Formsuth wrapper “login” Returns forms ticket pass ticket w/ each request Validate ticket and roles

Creating a Custom Membership Provider

Summary Rewrite or enhance features Project current features onto other platforms via web services or other methods Use the provider infrastructure for your own features Don’t screw it up, you can always make life worse – especially in security

Resources Custom Membership Providers Oracle Provider –Supports Membership, Roles and Personalization –Included in the PetShop sample – url=/library/en-us/dnbda/html/bdasamppet4.asp Access Database Provider –Supports Membership, Roles and Personalization –Installs as a Visual Studio 2005 VSI template – a8e-b8d4-4d6e-bb8f-027e6c8e15d8

Resources Custom Membership Providers (cont.) MySQL Provider –Support for ASP.NET Membership and Roles – MySQLMembershipProvider.asp SQLLite3 –Supports Membership and Roles – asp