Finally a Federation STS sample using ASP.NET Forms Authentication!
I have recently worked on an advisory case on which the customer was looking for a STS sample using ASP.NET Forms authentication as base to provide the claims. The Internet may be vast, but it is like a desert when it comes to a single sample of a STS leveraging forms authentication. Before continuing,
Verifying current calls and sessions during runtime
One of the WCF strengths is the flexibility to allow different configuration combinations. One of the WCF weakness is this configuration flexibility that may lead to a final results different from the expected. Some of the problems we see with our customers are related to actual configuration versus expected configuration. Let me give a
How to get a SAML Protocol Response from ADFS using C#
ADFS (Active Directory Federation Services) is a fancy name for Windows Identity Foundation Server. ADFS supports SAML protocol, however its client, Windows Identity Foundation (WIF), does not. As most of the problems of acquiring a token can be resolved with either WS-Federation and WS-Trust, you may use WIF for your federation needs since WIF supports
Verifying whether the broken piece is c2WTS or Active Directory
If you have tried my tool to troubleshoot c2WTS with SharePoint, c2WTSTester, verified that the service is running as expected, the account used by SharePoint is valid in c2WTS but you still failed to receive a valid token for some error that does not make much sense, fear no more. It may be that
Logging incoming requests and responses in an ASP.NET or WCF application in compatibility mode
One of our customers had a very particular problem that prevented them from using custom encoder and message inspectors in their WCF service running in ASP.NET compatibility mode. So they requested a proof of concept to save all incoming Http Request and their response in a log file. Saving in a log file in a
Hardcore Debugging for .NET Developers (not for the faint of heart)
UPDATE******* NETExt is now back in version 2.0.0.500 using a ClrMD as API. Get it here: http://netext.codeplex.com
Creating DebugDiag rule to generate SharePoint process dump based on ULS Tags
SharePoint has a very comprehensive and configurable diagnostic logging infrastructure known as ULS logs. Most of the ULS log entries include a unique tag called eventId . This tag is a 32-bits field containing only letters and numbers (e.g.. e5mc). This tag can help identify which portion of the code emitted the log. It is
Troubleshooting Claims to Windows NT Token Service (c2WTS) in SharePoint 2010 may be difficult if you don’t know where to start
I have been writing some blogs entries (and even a Microsoft KB) about c2WTS, but the subject never exhausts. I was helping two different customers to troubleshoot issues with SharePoint Excel Services. In one of the cases the problem happened randomly and the error message was saying that the request to the external data (SQL)
Console Application to discover Effective Named Pipe Path of a WCF net.pipe Endpoint
As I have promised in my previous post, I am making available a C++ console application to troubleshoot named pipes endpoints in WCF. Below is a screenshot of the application: Application logic: It gets the endpoint from the command line and substitute the host name by +, * depending on the wildcard mode. It
Application to check cascade access rights for a particular user or anonymous user in SharePoint
Don’t you hate when you have access denied and you don’t know where it is coming from? It is even worse when it is related to anonymous access where a single detail can prevent a page from being rendered (IIS authentication, broken inheritance, you name it). The application will show the detailed cascade rights for