The windows-identity tag has no wiki summary.
1
vote
0answers
36 views
Read WindowsIdentity users from database for windows authentication
I have a web application, which authenticates users by windows authentication. I used to write every users' identity in the authentication tag of the web.config file. Now my users are extending and I ...
1
vote
0answers
41 views
Properly creating WindowsIdentity from Forms Authentication?
I have an application from a vendor that expects a WindowsIdentity to function properly. I want to external face this application to grant access to users who are not domain joined. I am not an ...
2
votes
1answer
30 views
Identity, WIF, SAML and a 3rd party IdP
We are trying to get an intranet site to work against a 3rd party external ID Provider (Okta) that is federated with our internal AD.
We've managed to use Ultimate SAML to parse the SAML token ...
0
votes
5answers
73 views
how to get currently loggedin windows account from an asp.net page
I have an ASP.NET 3.5 application that uses asp.net forms authentication. I want to be able to get the windows user name currently logged into the computer (NOT logged into the asp.net application but ...
0
votes
0answers
30 views
Credentials cannot be changed on TcpChannels
I have admin service and user console. User authentication is doing through TCPChannel.
First step: I connect with Credential: domain, username and password - successfully.
C#
...
1
vote
1answer
70 views
WPF, Active Directory and Custom Role Provider
I have a WPF client/server application using WCF on the server side. It is presently unsecured and I'm wishing to secure it for a userbase on my Active Directory. The application should host it's own ...
2
votes
1answer
138 views
How do I authenticate the WindowsIdentity instance?
I'm trying to use Windows Identity Foundation for authorization in my WPF client/server (WCF) application that may or may not be run in the same trust environment as the active directory that provides ...
3
votes
4answers
56 views
can WindowsIdentity.GetCurrent() return null?
ReSharper warns me about a possible NullReferenceException in
WindowsIdentity windowsIdentity = new WindowsIdentity(WindowsIdentity.GetCurrent().Token);
I looked in MSDN doc but didn't see any ...
0
votes
0answers
32 views
WCF NetTCP - Occasional “The server has rejected the client credentials” exception
I have a .net 4.0 WPF client with a WCF net-tcp backend that uses WindowsIdentity similarly described to the link
...
1
vote
2answers
76 views
WIF IDP and SimpleSamlPHP as SP
I have a custom STS made in WIF that works as an IDP and now I need to configure SSO to a Service Provider made in SimpleSamlPHP. (The SP only supports Post Binding and Web Browser SSO Profile.)
Any, ...
0
votes
1answer
63 views
WCF Services Authorisation to a service function without membership provider
I've a WCF service which uses UserNamePasswordValidator for authantication. I check the username and password. If it is ok, then I allow to access service call.
class CustomUserNameValidator : ...
1
vote
2answers
98 views
How to store WindowsIdentity for use at a later, indeterminate time
I've a WCF service that queues and executes commands on behalf of the user at a later, indeterminate time. I was hoping to store the WindowsIdentity as a byte array and stuff it into a database, and ...
1
vote
2answers
89 views
.Net Secure Token Service (STS) issuing different Tokens based on the Realm
I have implemented a .Net STS website and everything is working fine. The token is populated with Claims of type Role, and these are used to control what the user has access to in the application.
A ...
1
vote
1answer
130 views
How to assign access rights “Everyone” to a directory
I encounter a problem to assign access rights to "Everyone" on a directory folder "wwwroot" on windows from my little programm in C#.
Here's how I do it.
//I also try with 'S-1-1-0'/'Everyone' but ...
1
vote
1answer
66 views
Why do I get a WindowsIdentity when using message security?
When switching from no security to Certificate I get a WindowsIdentity in the IAuthorizationPolicy.Evaluate (evaluationContext.Properties.TryGetValue("Identities", out obj)? Is this by design :
From ...
0
votes
2answers
138 views
How do I maintain a cookie based session in MVC, without a WIF STS/IDP?
On the surface, I think I need many features of WIF
The ability to use roles to distinguish between sessions
No session state on the server
All authentication and role data to reside in a HTTP ...
0
votes
0answers
42 views
How can i generate a directoryentry instance from WindowsIdentity?
I am using:
private static DirectoryEntry ConsultarActiveDirectory(WindowsIdentity wi)
{
DirectoryEntry dir = new DirectoryEntry();
try
{
SecurityIdentifier sid = wi.User;
...
0
votes
1answer
279 views
Why does WCF OperationContext gets wrong WindowsIdentity
I use the below snippet of code to fetch the client user name in my WCF service. On one of my servers, I am getting the wrong client name. My client is Win7 talking to Server 2008R2 in a workgroup ...
0
votes
2answers
1k views
HttpContext.Current.User.Identity.Name returns blank
I am using HttpContext.Current.User.Identity.Name to get the user name when the web application is in use. During development I was using my local iis, with integrated windows authentication enabled ...
3
votes
1answer
200 views
How to get the current Windows user's *network* identity, not their interactive log-on identity?
Question:
What is the .NET (or p/invoke to an unmanaged Windows API) method call to get the current process's network identity that is used to connect to SSPI-authenticated network services, such as ...
0
votes
1answer
420 views
Username and password authentication for WIF (Windows Identity Foundation) in ASP.NET MVC
We have two existing legacy web applications, one for the intranet using windows authentication within the domain, and one internet application, performing a custom web forms username + password based ...
0
votes
1answer
606 views
LogonUser function fails with error code 0 in c#
My objective is to copy a folder from my system to a remote computer in c#.
I searched everywhere and found some information on how to do that. I am calling the LogonUser function with the domain, ...
0
votes
1answer
132 views
WindowsIdentity.GetCurrent().Name returns machine name rather than windows user name
I am calling a web service application (.asmx) running in a virtual directory on an IIS 7.5 (for development purposes I only have IIS 5.1 but am hoping for some help anyway). Calling my ws when ...
0
votes
1answer
137 views
Generate SWT token, and sign it, from IClaimsPrincipal
I would like to create a SWT token based on the claims in:
IClaimsPrincipal principal = (IClaimsPrincipal)User;
IClaimsIdentity identity = (IClaimsIdentity)principal.Identity;
I have found code for ...
3
votes
2answers
3k views
MVC3 Windows Authentication override User.Identity
I am building a intranet application using MVC3 with a MSSQL backend. I have authentication and roles (through a custom roles provider) working properly. What I am trying to do now is overriding ...
0
votes
1answer
713 views
CryptographicException: The data is invalid in MVC 4 with WIF enabled
I have created a MVC 4 Project and set it up for Azure ACS. It worked with System.Identity. I changed it to use the Microsoft.Identity for enabling WIF and my config file looks like this now:
...
4
votes
1answer
309 views
How to check in C# if running as local administrator [duplicate]
Possible Duplicate:
How can I tell if my process is running As Administrator?
How can I check using C# if my process is running as the local Administrator?
I know how to find out if the ...
1
vote
5answers
1k views
How do I get the current windows user's name in username@domain format?
I know that the following function returns the current Windows user's name in domain\username format.
Convert.ToString( WindowsIdentity.GetCurrent().Name );
But how do I obtain the user's name in ...
1
vote
1answer
522 views
asp.net WindowsImpersonationContext function
Can anyone please explain the function of the lines below:
WindowsIdentity wId = (WindowsIdentity)HttpContext.Current.User.Identity;
WindowsImpersonationContext wIdCon = wId.Impersonate();
That is ...
0
votes
0answers
79 views
How to get Windows Identity with Forms Authintication
how i can get the windows identity using this line codes
IIdentity WinId = HttpContext.Current.User.Identity;
WindowsIdentity wi = (WindowsIdentity)WinId;
this works if the application ...
1
vote
1answer
159 views
Comparing WindowsIdentity.Current.Name on Server
I am currently reviewing a system with a wcf service and a client application that connects to it via tcp, using Windows Auth.
On certain actions it is required to store the user name on an objects ...
0
votes
0answers
93 views
Using Windows Identity connect to Active Directory
I have web application (in ASP.NET) running on server. I need to read information from Active Directory about current user (user who is logged into windows).
Note : User sholud not be asked for ...
0
votes
1answer
136 views
WindowsIdentity of Client User
I am programming a web application for a company, they require that the user should not enter any username and password, the user should be allowed to login to the system by their windows identity.
i ...
-1
votes
1answer
487 views
Windows Impersonation fails silently with no error and ends execution
I am using the below to impersonate users on Windows 7. This code is compiled into a dll and called from python. Generally it works, but recently we have been seeing the main execution fail and have ...
4
votes
4answers
1k views
WIF- ID1014: The signature is not valid. The data may have been tampered with
I've been using WIF to authenticate our new website, the STS is based upon the starter-sts implementation.
To enable this to work correctly on out load balanced environment I've used the following in ...
2
votes
2answers
557 views
What is the best place to detect user sign in when using azure acs and mvc3?
I want to be able to detect when a user signs on to my application using passive acs, so that I can add them to my database if this is the first time using my app. Right now I am subscribing to ...
2
votes
1answer
142 views
How can I determine if a user can runas admin?
When a user needs to enter their license key, we want to put it in HKLM if we can, and in HKCU if we cannot. If it is in HKLM then all users on the computer have the license without each having to ...
0
votes
3answers
913 views
HTTPContext.Current.User.Identity.Name not working inside a control?
I have a label and I want to set text of this label to
HTTPContext.Current.User.Identity.Name
So I wrote
Text = '<%=HTTPContext.Current.User.Identity.Name %>'
but it doesn't work, ...
0
votes
1answer
140 views
Protecting WIF-based sessions from Related Domain Cookie Attacks
How should I implement additional security to a WIF-based authentication session to protect myself from Related Domain Cookie Attacks that target authentication?
0
votes
1answer
560 views
Request.ServerVariables(“LOGON USER”) returns empty
Web.config file
<authentication mode="Windows" />
<authorization>
<allow users ="*" />
</authorization>
IIS permissions
(Unchecked)Enable ananymouse access
...
2
votes
1answer
123 views
Why does IIS seem to be elevating the WindowsIdentity of one request from the AppPool to my user account?
I am currently working on an ASP .NET application which involves the user logging in using Windows Authentication. This causes both the HTTPContext.User and Thread.Principal to be set with the same ...
3
votes
1answer
2k views
WindowsIdentity.Impersonate in ASP.NET randomly “Invalid token for impersonation - it cannot be duplicated”
I have an ASP.NET app that requires users to sign in with their domain accounts using Basic Authentication. The user can make a selection, then press a button.
At some point after pressing the button ...
2
votes
1answer
294 views
unsupported MONO function “ System.Security.Principal.WindowsIdentity.GetCurrent(bool)” using UNITY3D and MATLAB's MWARRAY.DLL
the problem starts with a function call to a mono function that is not supported yet. the call is made from a close matlab DLL called MWARRAY.DLL (.net version 2.x), this dll is normally used with VS ...
1
vote
1answer
775 views
ASP.NET Impersonation make windows Identity flow across to SQL Server
I have a website with Impersonation turned on.
IIS Windows Authentication is on and Anonymous Access is OFF.
SQL Server security has a Domain\TestUser account added
I logged on with ...
0
votes
1answer
166 views
STS and Redirecting causing issues with Ajax and also post requests
I've got a site that's integrated with WIF for security and mostly everything is ok. It's redirecting and dealing with load balancers etc.
I've noticed on a few requests it's bouncing to the sts and ...
4
votes
2answers
1k views
How do I handle the event SessionSecurityTokenReceived in Global.asax?
I'm trying to set up sliding sessions in WIF and need to handle SessionSecurityTokenReceived.
I'm sure I'm doing something dumb here... but VS2010 keeps on telling me that There is no applicable ...
3
votes
1answer
311 views
How to get sender's WindowsIdentity from recieved msmq message?
How to get sender's WindowsIdentity from recieved msmq message?
I use msmq as a transport and a Security Appplication Block with Authorization Rule Provider for operation's authorization. I need ...
0
votes
1answer
370 views
Token replays still possible even after implementing DefaultTokenReplayCache in WIF
I've been able to subclass DefaultTokenReplayCache and make it work in my MVC application. This correctly detects tokens that would be replayed from the IDP to the RP by Fiddler or by pressing the ...
0
votes
2answers
190 views
What value (Cookie, SessionID, variable) best represents a WIF Session?
I want to track a user's logon session from the time they login to my site, to the time they logoff.
Is there a pre-existing cookie I should use, or variable? I thought of using ASP.NET sessionIDs ...
0
votes
1answer
109 views
Customizing the Windows Identity Foundation (WIF) error messages (yellow screen of death)
WIF will send our users the Yellow Screen of Death whenever an error occurs. This can be something such as a token replay, or a old token being sent to the server as shown below:
How do I ...