Questions tagged [iidentity]

In .NET, IIdentity interface defines basic functionality of an identity object

Defines the basic functionality of an identity object. An identity object represents the user on whose behalf the code is running. This interface is implemented by the GenericIdentity and WindowsIdentity classes.

36 questions
0
votes
2 answers

Is there a way to pass user information to an IIdentityValidator?

I'm working on a custom password validation that will do a bunch of extra checks, ideally including that the password the user is trying to create doesn't contain any permutations of their username. We're using the Identity Framework, and my…
RSid
  • 768
  • 1
  • 8
  • 30
0
votes
2 answers

Custom IIdentity and passing data from an attribute to a controller

Here's my scenario: I've successfully created a custom IIdentity that I pass to a GenericPrincipal. When I access that IIdentity in my controller I have to cast the IIdentity in order to use the custom properties. example: public ActionResult…
DM.
  • 1,847
  • 1
  • 13
  • 18
0
votes
1 answer

How do you override the WCF AuthenticationService IsLoggedIn() method?

I have three current thoughts on how to do this: re-implement AuthenticationService, which uses lots of internal constructors and internal helpers, implement custom IIdentity and IPrincipal types and somehow hook these into…
user29439
0
votes
1 answer

WCF PrincipalPermission Authorization

I'm trying to setup role authorization on each wcf web method. Maybe I'm doing something wrong but I just can't get the authorization to take place. I have a UserNamePasswordValidator that authorizes the user access to the service. An authorization…
JIbber4568
  • 839
  • 4
  • 16
  • 33
0
votes
1 answer

What's the best way to attach an object to a logical control flow?

I need to make an object statically available for: (1) the current thread on which my program is running (2) all threads started by that thread (3) all thread pool tasks enqueued by that thread One way I've figured out to do this is to use a…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
0
votes
2 answers

Role-based Security without Forms Authentication in ASP .NET

I would like to take advantage of: Page.User.IsInRole("CustomRole"); Page.User.Identity.IsAuthenticated when working inside Page methods, as well as authorization section in web.config:
dragonfly
  • 17,407
  • 30
  • 110
  • 219
1 2
3