欢迎来到天天文库
浏览记录
ID:11685433
大小:227.50 KB
页数:14页
时间:2018-07-13
《关于aspnet的毕业设计论文外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、出自:ChrisHart,JoknKauffman,DavidSussman.《BeginningASP.NET2.0withC#》[M].Wrox,2006:125-131.英文原文AuthenticationOneareanotyetdiscussedisthatofhowtheauthenticationworksforthisapplication,andwhatoptionsareavailableinASP.NETforauthentication.Theexamplessofarhavereliedonwhat’sknownasFormsauthentication.So,w
2、hatisFormsauthentication,andwhataretheotheroptionsavailable?❑Formsauthentication:Loginrequestsaremadebyfillinginaformonawebpageandsubmittingthatformtotheserver.Whentheserverreceivestherequest,acookieiswrittentotheuser’slocalmachine,andthiscookieispassedbacktotheserverbythebrowseralongwitheachreque
3、stthatissentsothattheuserremainsauthenticatedforaslongasisrequired.❑Windowsauthentication:Loginpagespassusercredentialstoawebserver(IISonly,notthewebserverbuiltintoVWD).Thewebserverthenhandlestheauthenticationusingwhichevermethodisconfiguredonthevirtualdirectorythattheapplicationisrunningwithin.II
4、ShooksintotheWindowsoperatingsystemandActiveDirectorydomainstructures,whichmeansthatitcanrelyonuserprofilesthatarestoredexternally,andusestandardWindowscredentialstologintothesite.Dependingontheconfigurationofyoursite,anddependingonwhichuseraccountyouusedtologintoyourmachine,youmaynotevenhavetolog
5、intothesitedirectly,becauseyourcurrentWindowscredentialscanbepassedtothewebserverautomaticallyforauthentication.Thisisreallyhandywhenitcomestodevelopingintranetapplications.❑Passportauthentication:LogincredentialsarepassedtoaMicrosoftPassportserverwhereuserprofilesarestoredcentrally.Youmaybefamili
6、arwiththisfromloggingintoaHotmailaccount.AndbecauseyoucanconfigureWindowstologontoaPassportaccountonstartup,youcanaccessyourHotmailinboxwithoutevenhavingtotypeapassword.FormsAuthenticationModel.ThissectionlooksathowFormsauthenticationworks.Considerthefollowingscenario:❑Theuser—let’scallhimBob—want
7、stoviewPageA,whichcan’tbeaccessedbyanonymoususers,sowhenBobtriestoviewPageA,thebrowserinsteaddisplaysaloginpage,asshowninFigure4-29.Figure4-29❑Bobisnowlookingataloginpage.BecauseBobregisteredwiththissitepreviousl
此文档下载收益归作者所有