Questions tagged [windows-identity]

Use this tag to better reference questions about WindowsIdentity allowing to encapsulate information about Windows accounts.

The WindowsIdentity object encapsulates information about Windows accounts. You use the WindowsIdentity object if you want to make authorization decisions based on a user's Windows account information.

For example, using WindowsIdentity and WindowsPrincipal objects, you can write an application that requires all users to be currently validated by a Windows NT or Windows 2000 domain. You can also allow certain domain accounts to access your application while denying access to others.

To find more information :

204 questions
0
votes
1 answer

Getting "IDX10108: The address specified is not valid as per HTTPS scheme" when calling IdentityServer4 in AWS

We've implemented an Identity Server using IdentityServer4 and have deployed it to AWS. It works great until we enabled https on the ELB. Now when the client tries to authenticate we get the following…
0
votes
1 answer

Not able to find Windows.IdentityModel for windows 10 store app development

Is this dll not compatible with windows store app, Or is there any other way to achieve the same. I tried adding it from nuget package also but not happening, I am getting this error: "Severity Code Description Project File Line …
Rahul Sonone
  • 2,685
  • 1
  • 27
  • 38
0
votes
2 answers

Windows Identity Foundation STS: other types of requests?

I'm using WIF. I developed an STS that works well. The STS itself performs the login (basically using the pre-rolled code that comes with Microsoft MVC). So far we have two relying parties that can use the encrypted identity cookie just fine. Here's…
0
votes
0 answers

Check if directory has rights for the current user

I'm trying to determine whether a directory has the specified rights with the function below: Public Function DirectoryHasRights(ByVal directoryPath As String, ByVal rights As FileSystemRights, …
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
1 answer

How do I compare UserPrincipal with WindowsIdentity?

When binding a user to a Windows Account Im using the UserPrincipal SamAccountName according to this post(binding saved in database). Then when doing a login I need to check this binded user(from database) against the loggedin Windows Account and…
Banshee
  • 15,376
  • 38
  • 128
  • 219
0
votes
1 answer

with the microsoft identity foundation how long is default password token valid for?

with Microsoft's identity foundation, you can reset the user's password and it generates a token. This token is used to validate the password and is self-signed and contains an expiry period. Does anyone know what the default expiry period is?
yamspog
  • 18,173
  • 17
  • 63
  • 95
0
votes
2 answers

Getting User Sid

I'm writing a service and I am trying to get the logged in User's sid and for whatever reason it is not working. It only returns {S-1-5-18}. Yet if I create a quick console application, it works just fine. I've tried 2 methods: WindowsIdentity usr…
GarudaLead
  • 469
  • 1
  • 5
  • 18
0
votes
0 answers

Impersonate the whole process, not just a thread

I'm using SimpleImpersonation package, which does dirty work around some extern functions, for example [DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] internal static extern bool LogonUser(string lpszUsername, string…
astef
  • 8,575
  • 4
  • 56
  • 95
0
votes
3 answers

Windows.Identity in debug mode returns NT username, but returns NT AUTHORITY\SYSTEM when published to server

On the Visual Studio environment, during debugging I am retrieving the proper username through the familiar c# code line below: WindowsIdentity.GetCurrent().Name; However when I publish the project to the Server on Windows 2008 R2 with IIS 7.5, it…
Ikram M.
  • 347
  • 4
  • 16
0
votes
1 answer

FederatedPassiveSecurityTokenServiceOperations.ProcessSignInResponse - ThreadAbortException

I've been tasked with automating the setup of our applications by developing a tool to allow our support team to easily setup and configure this application. I verified that the application (originally setup by hand) worked before I began mucking…
Mike Cheel
  • 12,626
  • 10
  • 72
  • 101
0
votes
1 answer

Single Sign Off do not clear RP's own session

I am new to WIF. And now I encountered a problem when performing single sign off. The following is the background of my problem: First of all, I am working on two old application A and B, which they stores the user's information in their own session…
KenLai
  • 251
  • 1
  • 4
  • 15
0
votes
2 answers

Find if specified user (string) is a member of local Administrators group

I am trying to find if a user I identify is a member of the local Administrators group. But my code does nothing... Please see me code below. Also, this is being executed in my public void Form1_Load(object sender, EventArgs e) {} so it is done…
crlic306
  • 35
  • 5
0
votes
3 answers

Windows Identity Foundation Required Claims From AD FS

My question boils down to, can I refresh the user's Claims when I switch between Apps? From what I can tell the answer is most likely "no". I've done the dance to add "claimTypeRequired" but that isn't helpful. Say I have multiple Applications,…
MisterIsaak
  • 3,882
  • 6
  • 32
  • 55
0
votes
1 answer

Get current logged in username

I want to get the user name of the current logged in user. I am using the below code but it returns the user whose credentials are used in IIS application pool identity. The mvc website is deployed on a server. I have used string userid =…
0
votes
1 answer

with integrated windows authentication and asp.net, the user changes password and is prompted to login again. why?

I am working on an application that uses windows authentication. Within this application, we give the user the ability to change their password. The user can change the password just fine. However, after they change their password, that is when…
yamspog
  • 18,173
  • 17
  • 63
  • 95