惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

博客园 - enjoy .net

visual basic video series:Forms over data 无功倒送问题 变压器高低压侧的电流计算 爬电、爬距(泄漏距离)、爬电比距 使用BackgroundWorker进行Thread编程 VS2005的初体验 地板选购指南 IT服务管理时代已经到来 IT服务管理的效果分析 How to use the Install from Media feature to promote Windows Server 2003-based domain controllers 70-294读书笔记 TechED上海 术语: Tombstone/Tombstone Lifetime Windows 2003故障恢复 几乎没有管理的国企! 关于ASP.Net 2.0中的Theme ntdsutil的功能 体验了一次DNS的动态更新功能 Flexible Single Master Operations (FSMO)
ASP.Net 2.0中的Membership,Role和Profile
enjoy .net · 2005-08-14 · via 博客园 - enjoy .net

Membership Service(可以翻译成 成员 服务)
作用:Manages users and credentials ,两种使用方式

1、Declarative access via WS Admin Tool (所谓Declarative方式意思为点点鼠标就可以完成操作)

2、Programmatic access via Membership API

Simplifies forms authentication

1、Provides logic for validating user names and passwords, creating users, and more

2、Manages data store for credentials, e-mail addresses, and other membership data

Provider-based for flexible data storage ,即基于提供者的数据存储方式,这点很重要,可以针对不同数据库提供一个Provider,这样灵活性就比较好了。缺省提供了SqlMembershipProvider,支持将用户数据存储在Sql server中。运行Aspnet_regsql.exe可在SQL Server中建立相关的Table。

有两个主要的类:Membership和MembershipUser,用户界面这一端支持Login/LoginView/LoginStatus等控件。

Roles Management Service(角色)

Role-based security in a box

1、Declarative access via WS Admin Tool

2、Programmatic access via Roles API

Simplifies adding role-based security to sites that employ forms authentication

1、Maps users to roles on each request

2、Provides data store for role information

Provider-based for flexible data storage,和Membership一样,通过提供者对数据库进行访问,缺省的提供者为SqlRoleProvider

主要的类为Roles

Profile Service(可以翻译成 配置服务)

Stores per-user data persistently

1、Strongly typed (unlike session state)

2、On-demand lookup (unlike session state)

3、Long-lived (unlike session state)

4、Supports authenticated and anonymous users

Accessed through dynamically compiled ProfileBase derivatives

Provider-based for flexible data storage

参考网址