1 CS 3870/CS 5870: Note 14. Prog5 Due 10 PM Wednesday, Oct 21 Authentication and Authorization 2.

Slides:



Advertisements
Similar presentations
Editorial roles Members of a Manila site can be assigned an editorial role if you want to grant them access to write stories or modify the appearance of.
Advertisements

Forms Authentication, Users, Roles, Membership Ventsislav Popov Crossroad Ltd.
Members Only & Login Modules Members Only works with the Login module to provide password protection to Web pages and files. Login Groups may be created.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
ASP.NET Security MacDonald Ch. 18 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Authenticating Users in an ASP.NET Application. Web Site Administration Tool From VS 2008, click Website/ ASP.Net Configuration to open Web Site Administration.
Website Security ISYS 512. Authentication Authentication is the process that determines the identity of a user. Web.config file – node Options: –Windows.
Web Site Security ISYS 512/812. Authentication Authentication is the process that determines the identity of a user. Web.config file – node Options: –Windows:
Building ASP.NET Applications 2 Lecture 3,4 T. Ahlam Algharasi 4 th Level.
11 SHARING FILE SYSTEM RESOURCES Chapter 9. Chapter 9: SHARING FILE SYSTEM RESOURCES2 CHAPTER OVERVIEW  Create and manage file system shares and work.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Distributed Software Development VLab common project status.
CONFIGURING WINDOWS SERVER MIS 424 Professor Sandvig.
1 ASP.NET SECURITY Presenter: Van Nguyen. 2 Introduction Security is an integral part of any Web-based application. Understanding ASP.NET security will.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Session 11: Security with ASP.NET

1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Forms Authentication, Users, Roles, Membership Svetlin Nakov Telerik Corporation
1.NET Web Forms Security Issues © 2002 by Jerry Post.
Quick Start Guide: Administrator Basics Learn about: 1.Adding users to the LOAMS system 2.How to modify or delete existing users 3.How to reset passwords.
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
1 CS 3870/CS 5870: Note 11 Authentication and Authorization Membership Provider.
Dr. Mustafa Cem Kasapbaşı Security in ASP.NET. Determining Security Requirements Restricted File Types.
1 CS 3870/CS 5870 Note04 Session Variables and Post Back.
CS 3630 Database Design and Implementation. Assignment 3 Style! Agreement between database designer and the client. UserName1_EasyDrive UserName2_EasyDrive.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
1 CS 3870/CS 5870: Note 13 Lab 6 Authentication and Authorization Roles Management.
1 CS 3870/CS 5870: Note 07 Lab 3 Lab 4 Test 1: Two Tables.
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.
Module 7: Creating a Microsoft ASP.NET Web Application.
What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules.
Page 1 NTFS and Share Permissions Lecture 6 Hassan Shuja 10/26/2004.
CSC350: Learning Management Systems COMSATS Institute of Information Technology (Virtual Campus)
Module 5 : Security I Jong S. Bok
1 CS 3870/CS 5870: Note 12 Authentication and Authorization Membership Provider.
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
From “Control Panel”, launch “Programs and Features” then select “Turn Windows features on or off” Lab 2: Setup Lab Environment.
1 CS 3870/CS 5870: Note 16 Web User Controls. Prog 7 Copy Prog6 to Prog7 Modify all files for Prog7 Remove Web.config from sub-folders Make sure Prog7.
Information Management System “Institutions Module" Information Management System “Institutions Module" The System management module is an integrated part.
Configuring and Deploying Web Applications Lesson 7.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
Part 2.
1 CS 3870/CS 5870: Note 19 AJAX Prog8. Test 2 50 Points Thursday, Nov 12 2:00 PM – 4:00 PM Lab
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
NX Documentation Using Windows IIS (Internet Information Services) as a http server for NX documentation.
ASP.NET Essentials State management, authentication, and Web Services Daniele Pagano Arizona State University.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
Authentication and Authorization
Unit 7 Learning Objectives
Authentication and Authorisation in ASP.Net
ASP .NET MVC Authorization Training Videos
Session Variables and Post Back
CS 3870/CS 5870 AJAX Prog8.
To Join the Teleconference
CS 3870 Prog6 Roles Management Due Monday, November 5 Group Assignment.
CS 3870/CS 5870 Web User Controls Events (II).
Adding members to ArcGIS Online
Adding members to ArcGIS Online
CS 3870 Prog5 Shopping Bag.
Configuring Internet-related services
Role Management in .net Vinay Dhareshwar.
Adding members to ArcGIS Online
SOP of System Security Settings
Designing IIS Security (IIS – Internet Information Service)
Security - Forms Authentication
Adding members to ArcGIS Online
Presentation transcript:

1 CS 3870/CS 5870: Note 14

Prog5 Due 10 PM Wednesday, Oct 21 Authentication and Authorization 2

Prog6 Roles Management Sample Web Site 3

4 Prog 6 Create Folders Prog6, Admin, Member Copy files from Prog5 Modify Master Page and Content Pages Add Session Variables for Prog6 Make sure Prog6 is working before creating and assigning roles

5 Sub-Folders and Pages Member Default Shopping Checkout Admin Updating SetRoles CreateUser

Creating Roles Enabling RoleManager Web.config under the root folder Default is False 6

Roles Two Roles –Member –Admin 7

8 Role Management Users in role Admin can access pages in folder Admin User in role Member can access pages in folder Member One user can be assigned into multiple roles

New Users UserName: Windows Role: Member Password: your UWP Other: your choice 9

New Users UserName: WebProtocols Roles: Admin and Member Password: your UWP Other: your choice 10

11 Page SetRoles

12 Private Sub ListRolesBind() lstRoles.DataSource = Roles.GetAllRoles() lstRoles.DataBind() End Sub Protected Sub Button1_Click(...) Handles Button1.Click Roles.CreateRole(txtRole.Text) ListRolesBind() End Sub Protected Sub Button2_Click(...) Handles Button2.Click Roles.DeleteRole(txtRole.Text) ListRolesBind() End Sub Protected Sub Button3_Click(...) Handles Button3.Click Roles.AddUserToRole(lstUser.SelectedValue, lstRoles.SelectedValue) ListUsersBind() End Sub

13 Private Sub ListUsersBind() lstUsersInRole.DataSource = Roles.GetUsersInRole(lstRoles.SelectedValue) lstUsersInRole.DataBind() End Sub Protected Sub Button4_Click(...) Handles Button4.Click Roles.RemoveUserFromRole(lstUsersInRole.SelectedValue, lstRoles.SelectedValue) ListUsersBind() End Sub Protected Sub lstRoles_SelectedIndexChanged(...) Handles lstRoles.SelectedIndexChanged ListUsersBind() End Sub

Class Membership Handling Users lstUsers.DataSource = Membership.GetAllUsers() lstUsers.DataBind() 14

15 Web.Config Application Configuration File under the main web site

16 Setting Rights on Individual Pages Application Configuration File under the main web site

17 Sub-Folders and Pages Member Default Shopping Checkout Admin Updating SetRoles CreateUser

18 Authorization Configuration File under the folder Admin

19 Authorization Configuration File under the folder Member

20 Allow Multiple Roles (I) Configuration File under the folder Member

21 Allow Multiple Roles (II) Configuration File under the folder Member

Prog6 Each folder allows one role User WebPtotocols is in both roles 22

Allow and Deny Allow then Deny Deny then Allow will not work! 23

Prog6 24

Schedule Thursday: Lab 206 Do Prog5 and Project Lose 10 points if missing class 25

Test 2 Prog5 and Prog6 Authentication and Authorization Login Create User and Roles Assign users to roles Accessing Database Date: TBD 26