iidentity Questions
1
Given I create a claims identity and subsequently a principal.
Then I serialize the principal. Inspecting the json string I can confirm that the "Role" claim is there as well as the identity.
Dese...
Oof asked 24/1, 2018 at 14:38
9
Solved
I need to do something fairly simple: in my ASP.NET MVC application, I want to set a custom IIdentity / IPrincipal. Whichever is easier / more suitable. I want to extend the default so that I can c...
Graveclothes asked 30/6, 2009 at 15:18
4
Solved
So, what is the purpose for existence of both IIdentity and IPrincipal, and not some IIdentityMergedWithPrincipal? When is it not enough to implement both in same class?
Also, to understand purpos...
Superorder asked 24/11, 2014 at 15:4
7
Solved
Hi I use a custom MembershipProvider.
I want to know the current username during an application scenario, but when I try accessing HttpContext.Current.User.Identity.Name it always returns string.E...
Nagy asked 29/6, 2009 at 3:46
1
What is Thread.CurrentPrincipal used for? How does it help in the Authentication and Authorization of an application? Are there any articles or resources that help explain what it does?
Vintner asked 22/1, 2016 at 19:36
1
Solved
I am trying to hook into the Web Forms ASP.NET pipeline and extend the HttpContext.Current.User.Identity in such a way that the Name property returns a custom implementation.
One possible approach...
Mccrae asked 1/9, 2015 at 16:13
3
Solved
In C#, how do I set the Identity of a Thread?
For example, if I have Thread MyThread, which is already started, can I change MyThread's Identity?
Or is this not possible?
Orebro asked 3/11, 2008 at 14:49
1
With WIF (Windows Identity Foundation) 4.5, Microsoft created the WindowsPrincipal class, which is a type of ClaimsPrincipal. Of course, these classes aren't portable, but the interfaces behind the...
Input asked 21/5, 2014 at 18:43
2
Solved
I'm using a custom IIdentity and IPrincipal in my ASP.NET MVC application via EF 4.3 as expalined here (and follow accepted answer's solution). Also, I have a custom RoleProvider. In local (using I...
Opium asked 12/6, 2012 at 16:45
5
Solved
I try to implement ASP.NET Authentication and Authorization on top of our existing database.
We have a website calling a webservice to fetch its data. To use the webservice, i need to provide the u...
Lehmann asked 14/8, 2009 at 11:27
1
I have a custom class (with properties like UserID, UserName, UserEmail, etc) implementing IIdentity. I login through custom logic, which reads from sql. What should IIdentity's AuthenticationType ...
Magyar asked 3/5, 2011 at 11:37
1
Solved
I create my own IPrincipal and IIdentity implementation as shown below:
[ComVisible(true)]
[Serializable]
public sealed class CustomIdentity : IIdentity {
private readonly string _name;
private...
Jigaboo asked 24/5, 2012 at 17:17
3
Solved
I'm trying to replicate the following Ninject syntax in Unity, but not having any luck:
Bind<IIdentity>().ToMethod(c => HttpContext.Current.User.Identity);
I'm thinking it ought to look...
Longoria asked 23/11, 2011 at 17:43
3
Solved
I have a basic MVC 2 beta app where I am trying to implement a custom Identity and Principal classes.
I have created my classes that implement the IIdentity and IPrincipal interfaces, instantiated...
Godmother asked 10/12, 2009 at 21:6
1
© 2022 - 2024 — McMap. All rights reserved.