Questions tagged [wif]

The Windows Identity Foundation is a free Microsoft library that enables claims based authentication and use federated identity/single sign-on in their applications.

The Windows Identity Foundation is a free Microsoft .NET library that enables claims based authentication and use federated identity/single sign-on in their applications.

It is part of Microsoft's wider identity and access management strategy which includes Active Directory Federation Services and Windows Azure Access Control Services.

1279 questions
12
votes
2 answers

Is it possible to run WIF without LoadUserProfile = True

I'm trying to run WIF Relying Party application on a shared host. They will not set the IIS Setting LoadUserProfile to true and as such I'm getting the following error: Message: The data protection operation was unsuccessful. This may have been…
Jonathon Kresner
  • 2,793
  • 5
  • 29
  • 40
12
votes
1 answer

Basic Authentication Middleware with OWIN and ASP.NET WEB API

I created an ASP.NET WEB API 2.2 project. I used the Windows Identity Foundation based template for individual accounts available in visual studio see it here. The web client (written in angularJS) uses OAUTH implementation with web browser cookies…
12
votes
3 answers

ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry

I am trying to implement a Simple STS web site alongside my MVC application in a development environment. I was able to get this working properly on my local machine. I would navigate to my MVC app, kicked out to the STS web application, I login,…
shenn
  • 859
  • 4
  • 17
  • 47
12
votes
5 answers

Exclude specific path from WIF authorization in a ASP.NET MVC 4 project

We have successfully configured windows identity foundation (WIF) in our ASP.NET 4.5 MVC 4 project with the help of the Identity and Access... extension for Visual Studio 2012. But are unable to exclude a specific path from authorization to allow…
thmshd
  • 5,729
  • 3
  • 39
  • 67
12
votes
1 answer

Where is ClaimTypes.IdentityProvider?

Using .Net 4.5 RC and Azure Access Control Service, the primary claims I am interested in are the IdentityProvider and the NameIdentifier. System.Security.Claims.ClaimTypes contains constants for well-known claims, and it has…
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
12
votes
1 answer

URL redirection from ADFS server

I'm using ADFS for authentication in my ASP.net web app. The STS server redirects the browser to https://test.contoso.com. STS doesn't allow any return URL parameter when redirecting the client to STS in the first place. Would it be possible to…
Sam
  • 933
  • 5
  • 14
  • 26
11
votes
4 answers

How do I increase session timeout with W.I.F / SAML tokens / FedAuth cookie

I think the default timeout is something like every half hour. I'd like to change this to 2 weeks. Anyone got any ideas? Is this done usually from the STS side or the client side? Is forms authentication getting in the way too, or is that now…
Jonathon Kresner
  • 2,793
  • 5
  • 29
  • 40
11
votes
2 answers

Create SAML Authentication request using WIF

It seems most of the WIF information out there is useful for enabling federated authentication across entire applications. I'm interested in using the API to create SAML authentication requests and receive/interpret the SAML responses. I found the…
hackerhasid
  • 11,699
  • 10
  • 42
  • 60
11
votes
0 answers

WSFederationConstants.Parameters.Result equivalent in WIF .NET 4.5

I am trying to convert some code written in ASP.NET (with .NET version 3.5) that is using Windows Identity Foundation in MVC 5 that is using .NET 4.5 I found some useful information on msdn here and here. I haven't yet found equivalent of…
Endri
  • 714
  • 13
  • 34
11
votes
1 answer

ClaimsPrincipal.Current vs. HttpContext.Current.User?

In MVC what's the difference between these 2? They look identical, and they even return the same Type/Class System.Web.Security.RolePrincipal but there're subtleties. Eg. The following code throws various errors when called against the instance…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
10
votes
4 answers

W.I.F.: Setting IsSessionMode to true, can't seem to make it happen

We are having problems with Safari(and Opera) and from what I have read the FedAuth cookies are just too big. There is an "neat trick" to fix this: "WIF RTM added a property to the SessionAuthenticationModule, IsSessionMode. When flipped to true,…
DoctorArnar
  • 160
  • 1
  • 8
10
votes
1 answer

ADFS 2.0 Error ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry

The error: ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry. To accept security tokens from this issuer, configure the IssuerNameRegistry to return a valid name for this issuer. The situation: I have…
Peter T. LaComb Jr.
  • 2,935
  • 2
  • 29
  • 44
10
votes
2 answers

Reporting Services LocalReport and WIF

I have a wcf webservice that uses WIF for authentication. Part of the responsibility of this webservice is to generate a report and email it. If I render the report with data only everything is fine. If I include any report parameters, report…
Chris McKenzie
  • 3,681
  • 3
  • 27
  • 36
10
votes
1 answer

Where to create custom Identity with WIF in a MVC application?

Prior to WIF, Application_PostAcquireRequestState was a good place to create a custom Identity, but required a lot of framework to make sure each type of authentication you were doing was mapped appropriately. By custom Identity, I mean a class…
AaronLS
  • 37,329
  • 20
  • 143
  • 202
10
votes
3 answers

WCF call working when Fiddler On, else gives 400 Bad Request while debugging

Not Solved - still looking for a solution. I am making a WCF call passing in a SAML Token: Using SAML token with Web Service (wsdl) private static string serviceEndpoint = "https service endpoint"; public static void…
gbs
  • 7,196
  • 5
  • 43
  • 69