Impersonate using Forms Authentication

后端 未结 5 974
说谎
说谎 2020-11-29 02:15

I have an ASP.NET site that must use Forms Authentication and not Windows Authentication to access a ActiveDirectoryMembershipProvider. The site must use forms

5条回答
  •  一向
    一向 (楼主)
    2020-11-29 03:00

    If your users are using IE then you can turn on integrated security for the website and your users will be authenticated silently (no login dialog, no login page). Your impersonation will then work. If you need to target other browsers then this may not work (the user will probably be presented with a login dialog).

    Your current impersonation will never work because your users are logging in using an account other than their domain account. You can't expect the site to impersonate a user which hasn't supplied his credentials. That would go against basic security principals.

提交回复
热议问题