<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for www.leastprivilege.com</title>
	<atom:link href="http://leastprivilege.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://leastprivilege.com</link>
	<description>Dominick Baier on Identity &#38; Access Control</description>
	<lastBuildDate>Sun, 19 May 2013 03:11:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on UserName SupportingToken in WCF by smitha</title>
		<link>http://leastprivilege.com/2008/01/31/username-supportingtoken-in-wcf/comment-page-1/#comment-11086</link>
		<dc:creator><![CDATA[smitha]]></dc:creator>
		<pubDate>Sun, 19 May 2013 03:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.leastprivilege.com/UserNameSupportingTokenInWCF.aspx#comment-11086</guid>
		<description><![CDATA[Thank you .. so much.. I have a soap xml request which need username token with nonce, 2 binary securitytokens(supporting tokens).. and body of the soap encrypted, ciphered.  I am doing this is using C#, wcf. Hopefully this usernametoken sample can provide me some insight..Please let me know if you have some info to accomplish this.]]></description>
		<content:encoded><![CDATA[<p>Thank you .. so much.. I have a soap xml request which need username token with nonce, 2 binary securitytokens(supporting tokens).. and body of the soap encrypted, ciphered.  I am doing this is using C#, wcf. Hopefully this usernametoken sample can provide me some insight..Please let me know if you have some info to accomplish this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Rasheed</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11067</link>
		<dc:creator><![CDATA[Rasheed]]></dc:creator>
		<pubDate>Sat, 18 May 2013 11:57:17 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11067</guid>
		<description><![CDATA[Thank you for the hints. With fiddler and a few trials, I was able to generate an hardcoded security token that is exactly the same as the token generated by the identity server v2. So now I can use the CurrentPrincipal.Current from the web app and send the identity of the current user to the WCF service using (one leg) of the WS-Trust protocol and when are ready with the STS installation/configuration only the values of the web.config will change and the call to the STS to get the security token before calling the WCF service.

You can find the code source here : https://bitbucket.org/rachkoud/hardcoded-token/wiki/Home]]></description>
		<content:encoded><![CDATA[<p>Thank you for the hints. With fiddler and a few trials, I was able to generate an hardcoded security token that is exactly the same as the token generated by the identity server v2. So now I can use the CurrentPrincipal.Current from the web app and send the identity of the current user to the WCF service using (one leg) of the WS-Trust protocol and when are ready with the STS installation/configuration only the values of the web.config will change and the call to the STS to get the security token before calling the WCF service.</p>
<p>You can find the code source here : <a href="https://bitbucket.org/rachkoud/hardcoded-token/wiki/Home" rel="nofollow">https://bitbucket.org/rachkoud/hardcoded-token/wiki/Home</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11034</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 17 May 2013 18:47:30 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11034</guid>
		<description><![CDATA[Just use the service host factory from IdentityServer as a template.
I am offline now for a week.]]></description>
		<content:encoded><![CDATA[<p>Just use the service host factory from IdentityServer as a template.<br />
I am offline now for a week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Pat</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11033</link>
		<dc:creator><![CDATA[Pat]]></dc:creator>
		<pubDate>Fri, 17 May 2013 18:45:50 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11033</guid>
		<description><![CDATA[Hi Dominick,
Thank you for your help.
I started implementing a class that implements ServiceHostFactory, however I am having a tough time mapping the service name in the web.config to the class that implements ServiceHostFactory

I keeps forcing me to map service name to object that is implemented as the code behind for the svc file.
I keep getting this error:
Service &#039;System.ServiceModel.Security.WSTrustServiceContract&#039; has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.

Hope that makes sense.

- Pat]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,<br />
Thank you for your help.<br />
I started implementing a class that implements ServiceHostFactory, however I am having a tough time mapping the service name in the web.config to the class that implements ServiceHostFactory</p>
<p>I keeps forcing me to map service name to object that is implemented as the code behind for the svc file.<br />
I keep getting this error:<br />
Service &#8216;System.ServiceModel.Security.WSTrustServiceContract&#8217; has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.</p>
<p>Hope that makes sense.</p>
<p>- Pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11030</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 17 May 2013 13:07:13 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11030</guid>
		<description><![CDATA[Well - this is doable but not straightfoward - the principal steps are:

Create a SecurityTokenDescriptor to describe your token, use that to feed the saml security token handler CreateToken method.

Then use WriteToken and turn the result into a GenericXmlSecurityToken. That token can then be used to with CreateChannelWithIssuedToken.]]></description>
		<content:encoded><![CDATA[<p>Well &#8211; this is doable but not straightfoward &#8211; the principal steps are:</p>
<p>Create a SecurityTokenDescriptor to describe your token, use that to feed the saml security token handler CreateToken method.</p>
<p>Then use WriteToken and turn the result into a GenericXmlSecurityToken. That token can then be used to with CreateChannelWithIssuedToken.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Rasheed</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11024</link>
		<dc:creator><![CDATA[Rasheed]]></dc:creator>
		<pubDate>Fri, 17 May 2013 10:07:42 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11024</guid>
		<description><![CDATA[Hello Dominick,

I followed your courses on PluralSight and you&#039;ve done a great job, I highly recommand them. I&#039;m in the process of securing my WCF services and before installing an STS in our environment, I would like to send an hardcoded token, I can&#039;t find a piece of code to do that, I would like to use the same code as above except that create my hardcoded token instead of request it, like this : 

...
var myHarded = .. // How can I create this token? That will be valid on the server side with the same server config as above  (audienceUris, issuerNameRegistry, ..), also a bearer token.

// create channel with specified token
var proxy = factory.CreateChannelWithIssuedToken(myHardedToken);

var id = proxy.GetIdentity();

How can I do that?

Thanks
Rasheed]]></description>
		<content:encoded><![CDATA[<p>Hello Dominick,</p>
<p>I followed your courses on PluralSight and you&#8217;ve done a great job, I highly recommand them. I&#8217;m in the process of securing my WCF services and before installing an STS in our environment, I would like to send an hardcoded token, I can&#8217;t find a piece of code to do that, I would like to use the same code as above except that create my hardcoded token instead of request it, like this : </p>
<p>&#8230;<br />
var myHarded = .. // How can I create this token? That will be valid on the server side with the same server config as above  (audienceUris, issuerNameRegistry, ..), also a bearer token.</p>
<p>// create channel with specified token<br />
var proxy = factory.CreateChannelWithIssuedToken(myHardedToken);</p>
<p>var id = proxy.GetIdentity();</p>
<p>How can I do that?</p>
<p>Thanks<br />
Rasheed</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-11012</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 17 May 2013 06:58:06 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-11012</guid>
		<description><![CDATA[You can use WSTrustServiceHost e.g. this hosts a WSTrustServiceContract, which implements the various IWSTrustxxx interfaces. So nothing has really changed between WIF and .NET 4.5 (besides the namespaces and assembly names).]]></description>
		<content:encoded><![CDATA[<p>You can use WSTrustServiceHost e.g. this hosts a WSTrustServiceContract, which implements the various IWSTrustxxx interfaces. So nothing has really changed between WIF and .NET 4.5 (besides the namespaces and assembly names).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: JSON Web Token/OAuth2 with Thinktecture.IdentityModel AuthenticationHandler by ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com</title>
		<link>http://leastprivilege.com/2013/04/29/web-api-security-json-web-tokenoauth2-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10992</link>
		<dc:creator><![CDATA[ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com]]></dc:creator>
		<pubDate>Thu, 16 May 2013 17:59:55 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1378#comment-10992</guid>
		<description><![CDATA[[&#8230;] possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found one of the [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found one of the [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10991</link>
		<dc:creator><![CDATA[ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com]]></dc:creator>
		<pubDate>Thu, 16 May 2013 17:59:52 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10991</guid>
		<description><![CDATA[[&#8230;] it was possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found one of [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] it was possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found one of [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET Web API Security: The Thinktecture.IdentityModel AuthenticationHandler by ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com</title>
		<link>http://leastprivilege.com/2013/04/22/asp-net-web-api-security-the-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10990</link>
		<dc:creator><![CDATA[ASP.NET Web API Authentication: Using multiple (simultaneous) Authentication Methods with Thinktecture AuthenticationHandler &#124; www.leastprivilege.com]]></dc:creator>
		<pubDate>Thu, 16 May 2013 17:59:49 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1364#comment-10990</guid>
		<description><![CDATA[[&#8230;] day one it was possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] day one it was possible to support multiple authentication methods with AuthenticationHandler.(see here, here and here for some background). I simply stopped searching for other credentials once I found [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Pat</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-10962</link>
		<dc:creator><![CDATA[Pat]]></dc:creator>
		<pubDate>Thu, 16 May 2013 01:51:08 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-10962</guid>
		<description><![CDATA[Hi Dominick,
Thanks for getting back.

I notice that in .Net 3.5 we could implement 
&lt;service name=&quot;Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract&quot; 
in the web.config towards implementing an ActiveSTS

I think we cant do that anymore in .Net 4.5. How does one go about implementing something similar in .Net 4.5?

Thanks
Pat]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,<br />
Thanks for getting back.</p>
<p>I notice that in .Net 3.5 we could implement<br />
&lt;service name=&quot;Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract&quot;<br />
in the web.config towards implementing an ActiveSTS</p>
<p>I think we cant do that anymore in .Net 4.5. How does one go about implementing something similar in .Net 4.5?</p>
<p>Thanks<br />
Pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-10922</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Wed, 15 May 2013 03:11:47 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-10922</guid>
		<description><![CDATA[Well - SCT is WS-SecureConversation (establishSecurityContext on the binding). You typically disable that, because you don&#039;t want sessions. Especially on the STS.

IdentityServer has all you need - look for the service host factory in the WS-Trust folder of the Protocols project.]]></description>
		<content:encoded><![CDATA[<p>Well &#8211; SCT is WS-SecureConversation (establishSecurityContext on the binding). You typically disable that, because you don&#8217;t want sessions. Especially on the STS.</p>
<p>IdentityServer has all you need &#8211; look for the service host factory in the WS-Trust folder of the Protocols project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Pat</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-10915</link>
		<dc:creator><![CDATA[Pat]]></dc:creator>
		<pubDate>Tue, 14 May 2013 22:17:22 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-10915</guid>
		<description><![CDATA[Hi
I can’t find a small sample of an Active STS using certificates anywhere. Microsoft has released a few sample but none of Active STS implemetnation.  They keep pushing use of ADFS or Azure for STS. This post comes closest to any sample code. Thank you for that.

I have looked at the thinktecture project and that is way more extensive than a simple sample. I have also seen all your pluralsight videos but I dont think there is a description of developing Active STS.

I have setup an Active STS but I keep getting the error 

The message with Action &#039;http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT&#039; cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).

 Any ideas where to look?
Thanks
Pat]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
I can’t find a small sample of an Active STS using certificates anywhere. Microsoft has released a few sample but none of Active STS implemetnation.  They keep pushing use of ADFS or Azure for STS. This post comes closest to any sample code. Thank you for that.</p>
<p>I have looked at the thinktecture project and that is way more extensive than a simple sample. I have also seen all your pluralsight videos but I dont think there is a description of developing Active STS.</p>
<p>I have setup an Active STS but I keep getting the error </p>
<p>The message with Action &#8216;http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT&#8217; cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</p>
<p> Any ideas where to look?<br />
Thanks<br />
Pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Utsav Vishnoi</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10904</link>
		<dc:creator><![CDATA[Utsav Vishnoi]]></dc:creator>
		<pubDate>Tue, 14 May 2013 10:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10904</guid>
		<description><![CDATA[Hi Dominick,
Thanks for your response and guidance.]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,<br />
Thanks for your response and guidance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10903</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Tue, 14 May 2013 10:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10903</guid>
		<description><![CDATA[I am not using ACS nor OAuth. You could use the JsonWebTokenHandler class from Thinktecture.IdentityModel. But I really recommend using the Microsoft JWT handler since this supports signing with X.509 certs - and I don&#039;t.

http://msdn.microsoft.com/en-us/library/dn205065.aspx
http://www.cloudidentity.com/blog/2012/11/20/introducing-the-developer-preview-of-the-json-web-token-handler-for-the-microsoft-net-framework-4-5-2/]]></description>
		<content:encoded><![CDATA[<p>I am not using ACS nor OAuth. You could use the JsonWebTokenHandler class from Thinktecture.IdentityModel. But I really recommend using the Microsoft JWT handler since this supports signing with X.509 certs &#8211; and I don&#8217;t.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/dn205065.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dn205065.aspx</a><br />
<a href="http://www.cloudidentity.com/blog/2012/11/20/introducing-the-developer-preview-of-the-json-web-token-handler-for-the-microsoft-net-framework-4-5-2/" rel="nofollow">http://www.cloudidentity.com/blog/2012/11/20/introducing-the-developer-preview-of-the-json-web-token-handler-for-the-microsoft-net-framework-4-5-2/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Utsav Vishnoi</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10902</link>
		<dc:creator><![CDATA[Utsav Vishnoi]]></dc:creator>
		<pubDate>Tue, 14 May 2013 09:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10902</guid>
		<description><![CDATA[Hi Dominick,

Thanks for your your reply. Can you please share any Sample in which you explain how you are generating Json Web Token using ThinkTecture? Please guide me may be I am wrong. As per my understanding after looking in to your library, you are using ACS internally. You are generating Json Web token using OAuth class. Please suggest any better way to generate Json Web Token using ThinkTecture.]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,</p>
<p>Thanks for your your reply. Can you please share any Sample in which you explain how you are generating Json Web Token using ThinkTecture? Please guide me may be I am wrong. As per my understanding after looking in to your library, you are using ACS internally. You are generating Json Web token using OAuth class. Please suggest any better way to generate Json Web Token using ThinkTecture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10900</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Tue, 14 May 2013 09:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10900</guid>
		<description><![CDATA[You don&#039;t need my library for that. That&#039;s built straight into Microsoft&#039;s JWT handler.]]></description>
		<content:encoded><![CDATA[<p>You don&#8217;t need my library for that. That&#8217;s built straight into Microsoft&#8217;s JWT handler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Utsav Vishnoi</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10899</link>
		<dc:creator><![CDATA[Utsav Vishnoi]]></dc:creator>
		<pubDate>Tue, 14 May 2013 09:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10899</guid>
		<description><![CDATA[Hi Dominick,
I am new to ThinkTecture and just want to know that can we use X509 certificates to sign JSON Web token using ThinkTecture ?]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,<br />
I am new to ThinkTecture and just want to know that can we use X509 certificates to sign JSON Web token using ThinkTecture ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Claims-based Authorization in MVC and Web API by Ibraheem</title>
		<link>http://leastprivilege.com/2012/10/26/using-claims-based-authorization-in-mvc-and-web-api/comment-page-1/#comment-10888</link>
		<dc:creator><![CDATA[Ibraheem]]></dc:creator>
		<pubDate>Mon, 13 May 2013 18:36:42 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1121#comment-10888</guid>
		<description><![CDATA[Thanks for the great article. With regards to the comments that refer to how claims should be mapped to authorizations, IMO a nice pattern would be to have roles contain a collection of authorizations. Your claim could be for a role, or for an authorization. As long as the role contains the authorization, it can be considered as being the authorization. Your CheckAccess(authorization) logic can then use the claim whether its for an authorization explicitly, or for a role that contains the authorization.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the great article. With regards to the comments that refer to how claims should be mapped to authorizations, IMO a nice pattern would be to have roles contain a collection of authorizations. Your claim could be for a role, or for an authorization. As long as the role contains the authorization, it can be considered as being the authorization. Your CheckAccess(authorization) logic can then use the claim whether its for an authorization explicitly, or for a role that contains the authorization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Prasad</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10884</link>
		<dc:creator><![CDATA[Prasad]]></dc:creator>
		<pubDate>Mon, 13 May 2013 13:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10884</guid>
		<description><![CDATA[Token contains claims and signature.I didn&#039;t understand what is mean by signature at developing time.I mean how can we implement and how exactly the certificate will play a role]]></description>
		<content:encoded><![CDATA[<p>Token contains claims and signature.I didn&#8217;t understand what is mean by signature at developing time.I mean how can we implement and how exactly the certificate will play a role</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10863</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Sat, 11 May 2013 08:23:59 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10863</guid>
		<description><![CDATA[It&#039;s IdentityController in Common.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s IdentityController in Common.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Karel Vandenhove</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10852</link>
		<dc:creator><![CDATA[Karel Vandenhove]]></dc:creator>
		<pubDate>Fri, 10 May 2013 18:47:06 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10852</guid>
		<description><![CDATA[Hi, 
This must be a stupid question, but where can I find the /webapisecurity/api/ controller for the Web Api Security Project? 
I&#039;ve got the FormsAndBasicAuth running, but cannot get to the /webapisecurity/api/

Thanks!

Karel]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
This must be a stupid question, but where can I find the /webapisecurity/api/ controller for the Web Api Security Project?<br />
I&#8217;ve got the FormsAndBasicAuth running, but cannot get to the /webapisecurity/api/</p>
<p>Thanks!</p>
<p>Karel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10849</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 10 May 2013 07:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10849</guid>
		<description><![CDATA[Explain.]]></description>
		<content:encoded><![CDATA[<p>Explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Prasad</title>
		<link>http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/comment-page-1/#comment-10848</link>
		<dc:creator><![CDATA[Prasad]]></dc:creator>
		<pubDate>Fri, 10 May 2013 07:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/#comment-10848</guid>
		<description><![CDATA[Hi Dominick,will you please say,what is mean by signature in token?How can we implement in .net?]]></description>
		<content:encoded><![CDATA[<p>Hi Dominick,will you please say,what is mean by signature in token?How can we implement in .net?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UserName SupportingToken in WCF by Dominick Baier</title>
		<link>http://leastprivilege.com/2008/01/31/username-supportingtoken-in-wcf/comment-page-1/#comment-10846</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 10 May 2013 06:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.leastprivilege.com/UserNameSupportingTokenInWCF.aspx#comment-10846</guid>
		<description><![CDATA[How about this file? http://sdrv.ms/11p5nNa]]></description>
		<content:encoded><![CDATA[<p>How about this file? <a href="http://sdrv.ms/11p5nNa" rel="nofollow">http://sdrv.ms/11p5nNa</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Archive by Dominick Baier</title>
		<link>http://leastprivilege.com/archive/comment-page-1/#comment-10845</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 10 May 2013 06:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://leastprivilege.com/?page_id=952#comment-10845</guid>
		<description><![CDATA[How about this file? http://sdrv.ms/11p5nNa]]></description>
		<content:encoded><![CDATA[<p>How about this file? <a href="http://sdrv.ms/11p5nNa" rel="nofollow">http://sdrv.ms/11p5nNa</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UserName SupportingToken in WCF by smitha</title>
		<link>http://leastprivilege.com/2008/01/31/username-supportingtoken-in-wcf/comment-page-1/#comment-10842</link>
		<dc:creator><![CDATA[smitha]]></dc:creator>
		<pubDate>Fri, 10 May 2013 03:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.leastprivilege.com/UserNameSupportingTokenInWCF.aspx#comment-10842</guid>
		<description><![CDATA[ya looked in jan 2008 archives no code which i could download. Ii have posted my question of stack overflow. http://stackoverflow.com/questions/16467898/public-certificate-private-key-asymmetricsecurity-element.. My request needs a usernametoken, binary security tokens
Please suggest .. Thank you]]></description>
		<content:encoded><![CDATA[<p>ya looked in jan 2008 archives no code which i could download. Ii have posted my question of stack overflow. <a href="http://stackoverflow.com/questions/16467898/public-certificate-private-key-asymmetricsecurity-element" rel="nofollow">http://stackoverflow.com/questions/16467898/public-certificate-private-key-asymmetricsecurity-element</a>.. My request needs a usernametoken, binary security tokens<br />
Please suggest .. Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The simplest SecurityToken / Handler you can write by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/06/03/the-simplest-securitytoken-handler-you-can-write/comment-page-1/#comment-10836</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Thu, 09 May 2013 09:46:10 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=984#comment-10836</guid>
		<description><![CDATA[Hi, 

please use the issue tracker
https://github.com/thinktecture/Thinktecture.IdentityModel.40/issues

In general I&#039;d recommend using .NET 4.5 since we actively maintain that version.]]></description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>please use the issue tracker<br />
<a href="https://github.com/thinktecture/Thinktecture.IdentityModel.40/issues" rel="nofollow">https://github.com/thinktecture/Thinktecture.IdentityModel.40/issues</a></p>
<p>In general I&#8217;d recommend using .NET 4.5 since we actively maintain that version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The simplest SecurityToken / Handler you can write by Jaymie</title>
		<link>http://leastprivilege.com/2012/06/03/the-simplest-securitytoken-handler-you-can-write/comment-page-1/#comment-10835</link>
		<dc:creator><![CDATA[Jaymie]]></dc:creator>
		<pubDate>Thu, 09 May 2013 09:41:55 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=984#comment-10835</guid>
		<description><![CDATA[Hi Dominic, 
How would you set this up in .Net 4? I seem to get an error stating that Cannot implicitly convert type &#039;Microsoft.IdentityModel.Claims.ClaimsIdentity&#039; to &#039;Microsoft.IdentityModel.Claims.ClaimsPrincipal&#039; not to mention that AddAccessKey is not part of the HttpConfiguration]]></description>
		<content:encoded><![CDATA[<p>Hi Dominic,<br />
How would you set this up in .Net 4? I seem to get an error stating that Cannot implicitly convert type &#8216;Microsoft.IdentityModel.Claims.ClaimsIdentity&#8217; to &#8216;Microsoft.IdentityModel.Claims.ClaimsPrincipal&#8217; not to mention that AddAccessKey is not part of the HttpConfiguration</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UserName SupportingToken in WCF by Dominick Baier</title>
		<link>http://leastprivilege.com/2008/01/31/username-supportingtoken-in-wcf/comment-page-1/#comment-10790</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Sun, 05 May 2013 18:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.leastprivilege.com/UserNameSupportingTokenInWCF.aspx#comment-10790</guid>
		<description><![CDATA[See here
http://leastprivilege.com/archive/]]></description>
		<content:encoded><![CDATA[<p>See here<br />
<a href="http://leastprivilege.com/archive/" rel="nofollow">http://leastprivilege.com/archive/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UserName SupportingToken in WCF by smitha</title>
		<link>http://leastprivilege.com/2008/01/31/username-supportingtoken-in-wcf/comment-page-1/#comment-10788</link>
		<dc:creator><![CDATA[smitha]]></dc:creator>
		<pubDate>Sun, 05 May 2013 16:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.leastprivilege.com/UserNameSupportingTokenInWCF.aspx#comment-10788</guid>
		<description><![CDATA[Hi, the link for supportingusernametoken.zip is broken. I need this functionality]]></description>
		<content:encoded><![CDATA[<p>Hi, the link for supportingusernametoken.zip is broken. I need this functionality</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET Web API Security: The Thinktecture.IdentityModel AuthenticationHandler by justneedanid</title>
		<link>http://leastprivilege.com/2013/04/22/asp-net-web-api-security-the-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10751</link>
		<dc:creator><![CDATA[justneedanid]]></dc:creator>
		<pubDate>Wed, 01 May 2013 20:15:53 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1364#comment-10751</guid>
		<description><![CDATA[I was wondering if anyone had examples of using IoC to provide services like the &#039;tokenHandler&#039; above or the &#039;ClaimsAuthenticationTransformer&#039;. I imagine a common scenario would use some repository to convert tokens to users/claims but how I wire that in is a bit of a stumper.]]></description>
		<content:encoded><![CDATA[<p>I was wondering if anyone had examples of using IoC to provide services like the &#8216;tokenHandler&#8217; above or the &#8216;ClaimsAuthenticationTransformer&#8217;. I imagine a common scenario would use some repository to convert tokens to users/claims but how I wire that in is a bit of a stumper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10740</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Tue, 30 Apr 2013 17:09:42 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10740</guid>
		<description><![CDATA[it&#039;s what alows the browser to send the cookie over ajax]]></description>
		<content:encoded><![CDATA[<p>it&#8217;s what alows the browser to send the cookie over ajax</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10739</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Tue, 30 Apr 2013 17:09:06 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10739</guid>
		<description><![CDATA[Thank&#039;s a lot Dominick !! It&#039;s ok ! 
I added this into the 2 ajax request : 

xhrFields: {
		withCredentials: true
		}]]></description>
		<content:encoded><![CDATA[<p>Thank&#8217;s a lot Dominick !! It&#8217;s ok !<br />
I added this into the 2 ajax request : </p>
<p>xhrFields: {<br />
		withCredentials: true<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-10735</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Tue, 30 Apr 2013 05:37:49 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-10735</guid>
		<description><![CDATA[Sure this is possible. But not built into .NET.

I would recommend to use the JWT token format instead of SWT - SWT is dead.

On Nuget there is a JWT authorization manager for WCF (search for JWT).]]></description>
		<content:encoded><![CDATA[<p>Sure this is possible. But not built into .NET.</p>
<p>I would recommend to use the JWT token format instead of SWT &#8211; SWT is dead.</p>
<p>On Nuget there is a JWT authorization manager for WCF (search for JWT).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WCF and Identity in .NET 4.5: External Authentication with WS-Trust by Mike</title>
		<link>http://leastprivilege.com/2012/11/16/wcf-and-identity-in-net-4-5-external-authentication-with-ws-trust/comment-page-1/#comment-10732</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 21:55:55 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1154#comment-10732</guid>
		<description><![CDATA[Dominick,
I have a rich client with a browser plugin from which I get a SWT token, from Azure ACS. I pass the token to the WCF service configured to use WIF, to the claims assigned. The claims is supposed to be assigned via a custom token handler decoding the SWT. I would like to ask if this is at all possible? If so how should the web.config file for the service be configured? It would be great to get a pointer to a sample.
Sorry, the problem is that I&#039;m using .NET 4.5. (samples are hard to find)]]></description>
		<content:encoded><![CDATA[<p>Dominick,<br />
I have a rich client with a browser plugin from which I get a SWT token, from Azure ACS. I pass the token to the WCF service configured to use WIF, to the claims assigned. The claims is supposed to be assigned via a custom token handler decoding the SWT. I would like to ask if this is at all possible? If so how should the web.config file for the service be configured? It would be great to get a pointer to a sample.<br />
Sorry, the problem is that I&#8217;m using .NET 4.5. (samples are hard to find)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10729</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 19:50:34 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10729</guid>
		<description><![CDATA[Brock can help you over here: 
http://forums.asp.net/p/1902527/5379095.aspx/1?Re+Form+Authentification+from+external+client+to+WEB+API]]></description>
		<content:encoded><![CDATA[<p>Brock can help you over here:<br />
<a href="http://forums.asp.net/p/1902527/5379095.aspx/1?Re+Form+Authentification+from+external+client+to+WEB+API" rel="nofollow">http://forums.asp.net/p/1902527/5379095.aspx/1?Re+Form+Authentification+from+external+client+to+WEB+API</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10728</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 18:52:27 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10728</guid>
		<description><![CDATA[Hi Domick ! 
I understood my problem !! But I don&#039;t know solve it. 

Consider just two event button click and two controller action (a little bit of code ) : 
https://gist.github.com/tomadj/7ed5642f65f9329c5ff5

IF the code client is in the same server ( IIs localhost visualstudio 2012 project MVC 4 + webAPI ) run from on a razor page html --&gt; http://localhost:5314/home/index : 

1 ) click on &quot;is Authorize ?&quot; button --&gt; return 401 Unauthorized 
2  click on &quot;login&quot; button --&gt; return success: true 
3) click again on is Authorize ? button --&gt; return OK user is authentificated 

however if I call my web api from an other server/site (in my case, a wordpress  blog  in a html page of this blog ) : 

1 ) click on &quot;is Authorize ?&quot; button --&gt; return 401 Unauthorized 
2  click on &quot;login&quot; button --&gt; return success: true 
3) click again on is Authorize ? button --&gt; RETURN 401 UNAUTHORIZED 

I guess :
1-  I must get the &quot;context/cookie&quot; in the callback of action login if return true.
2- I must set  the &quot;context/cookie&quot; before call again the authorize action 

No ? 
if is the good solution, can you help me for do that ? 

Thank&#039;s again ! 

Thomas]]></description>
		<content:encoded><![CDATA[<p>Hi Domick !<br />
I understood my problem !! But I don&#8217;t know solve it. </p>
<p>Consider just two event button click and two controller action (a little bit of code ) :<br />
<a href="https://gist.github.com/tomadj/7ed5642f65f9329c5ff5" rel="nofollow">https://gist.github.com/tomadj/7ed5642f65f9329c5ff5</a></p>
<p>IF the code client is in the same server ( IIs localhost visualstudio 2012 project MVC 4 + webAPI ) run from on a razor page html &#8211;&gt; <a href="http://localhost:5314/home/index" rel="nofollow">http://localhost:5314/home/index</a> : </p>
<p>1 ) click on &#8220;is Authorize ?&#8221; button &#8211;&gt; return 401 Unauthorized<br />
2  click on &#8220;login&#8221; button &#8211;&gt; return success: true<br />
3) click again on is Authorize ? button &#8211;&gt; return OK user is authentificated </p>
<p>however if I call my web api from an other server/site (in my case, a wordpress  blog  in a html page of this blog ) : </p>
<p>1 ) click on &#8220;is Authorize ?&#8221; button &#8211;&gt; return 401 Unauthorized<br />
2  click on &#8220;login&#8221; button &#8211;&gt; return success: true<br />
3) click again on is Authorize ? button &#8211;&gt; RETURN 401 UNAUTHORIZED </p>
<p>I guess :<br />
1-  I must get the &#8220;context/cookie&#8221; in the callback of action login if return true.<br />
2- I must set  the &#8220;context/cookie&#8221; before call again the authorize action </p>
<p>No ?<br />
if is the good solution, can you help me for do that ? </p>
<p>Thank&#8217;s again ! </p>
<p>Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Andy Cohen</title>
		<link>http://leastprivilege.com/about/comment-page-1/#comment-10726</link>
		<dc:creator><![CDATA[Andy Cohen]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 12:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://dominickbaier.wordpress.com/?page_id=2#comment-10726</guid>
		<description><![CDATA[Actually I found it in the video itself: http://goo.gl/00Oc2.  Thanks.]]></description>
		<content:encoded><![CDATA[<p>Actually I found it in the video itself: <a href="http://goo.gl/00Oc2" rel="nofollow">http://goo.gl/00Oc2</a>.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API by Dominick Baier</title>
		<link>http://leastprivilege.com/2012/08/20/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api/comment-page-1/#comment-10722</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 07:17:32 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1081#comment-10722</guid>
		<description><![CDATA[&lt;p&gt;Reblogged this on &lt;a href=&quot;http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/&quot; rel=&quot;nofollow&quot;&gt;www.leastprivilege.com&lt;/a&gt; and commented: &lt;/p&gt;
&lt;p&gt;An old posts. But since I am writing about AuthenticationHandler..this is still relevant!&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>Reblogged this on <a href="http://leastprivilege.com/2013/04/29/support-for-x-509-client-certificates-in-thinktecture-identitymodel-for-web-api-2/" rel="nofollow">http://www.leastprivilege.com</a> and commented: </p>
<p>An old posts. But since I am writing about AuthenticationHandler..this is still relevant!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Web API Security: JSON Web Token/OAuth2 with Thinktecture.IdentityModel AuthenticationHandler &#124; www.leastprivilege.com</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10721</link>
		<dc:creator><![CDATA[Web API Security: JSON Web Token/OAuth2 with Thinktecture.IdentityModel AuthenticationHandler &#124; www.leastprivilege.com]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 07:04:03 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10721</guid>
		<description><![CDATA[[...] &#8592; Web API Security: Basic Authentication with Thinktecture.IdentityModel&#160;AuthenticationHan... [...]]]></description>
		<content:encoded><![CDATA[<p>[...] &larr; Web API Security: Basic Authentication with Thinktecture.IdentityModel&nbsp;AuthenticationHan&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET Web API Security: The Thinktecture.IdentityModel AuthenticationHandler by Web API Security: JSON Web Token/OAuth2 with Thinktecture.IdentityModel AuthenticationHandler &#124; www.leastprivilege.com</title>
		<link>http://leastprivilege.com/2013/04/22/asp-net-web-api-security-the-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10720</link>
		<dc:creator><![CDATA[Web API Security: JSON Web Token/OAuth2 with Thinktecture.IdentityModel AuthenticationHandler &#124; www.leastprivilege.com]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 07:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1364#comment-10720</guid>
		<description><![CDATA[[...] the pattern from my two previous posts, you can also validate JWTs with a simple extension method over the basic AddMapping [...]]]></description>
		<content:encoded><![CDATA[<p>[...] the pattern from my two previous posts, you can also validate JWTs with a simple extension method over the basic AddMapping [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Dominick Baier</title>
		<link>http://leastprivilege.com/about/comment-page-1/#comment-10713</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 06:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://dominickbaier.wordpress.com/?page_id=2#comment-10713</guid>
		<description><![CDATA[https://github.com/thinktecture/Thinktecture.IdentityModel.45]]></description>
		<content:encoded><![CDATA[<p><a href="https://github.com/thinktecture/Thinktecture.IdentityModel.45" rel="nofollow">https://github.com/thinktecture/Thinktecture.IdentityModel.45</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Andy Cohen</title>
		<link>http://leastprivilege.com/about/comment-page-1/#comment-10710</link>
		<dc:creator><![CDATA[Andy Cohen]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 02:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://dominickbaier.wordpress.com/?page_id=2#comment-10710</guid>
		<description><![CDATA[Dominick,

Is the source code available from your video: http://vimeo.com/43603474?]]></description>
		<content:encoded><![CDATA[<p>Dominick,</p>
<p>Is the source code available from your video: <a href="http://vimeo.com/43603474" rel="nofollow">http://vimeo.com/43603474</a>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10621</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 14:36:26 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10621</guid>
		<description><![CDATA[Ok thank&#039;s Dominick. I will search and learn more  on forms authentification.]]></description>
		<content:encoded><![CDATA[<p>Ok thank&#8217;s Dominick. I will search and learn more  on forms authentification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10619</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 14:14:22 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10619</guid>
		<description><![CDATA[Again - you need to make sure the client sends the cookie after calling login. Then there is nothing else you need to do.

Please read up on cookies and how forms authentication is supposed to work. Otherwise I can&#039;t help you.]]></description>
		<content:encoded><![CDATA[<p>Again &#8211; you need to make sure the client sends the cookie after calling login. Then there is nothing else you need to do.</p>
<p>Please read up on cookies and how forms authentication is supposed to work. Otherwise I can&#8217;t help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10616</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 12:14:54 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10616</guid>
		<description><![CDATA[Ok thank&#039;s ! I can&#039;t test now at work but this evening I will try to remove basic auth and just keep form auth. 

Server side : 
- In the LogUser Action, if the user is validate I set the AuthCookie with : FormsAuthentication.SetAuthCookie(user.Login, true);

I remove just the lines :  authentication.AddBasicAuthentication((username, password)
                =&gt; Membership.ValidateUser(username, password)); in AuthenticationConfiguration  ? 

And client side, must be added in the header of the ajax request to the [Autorize] action the cookie. How can I do that ?]]></description>
		<content:encoded><![CDATA[<p>Ok thank&#8217;s ! I can&#8217;t test now at work but this evening I will try to remove basic auth and just keep form auth. </p>
<p>Server side :<br />
- In the LogUser Action, if the user is validate I set the AuthCookie with : FormsAuthentication.SetAuthCookie(user.Login, true);</p>
<p>I remove just the lines :  authentication.AddBasicAuthentication((username, password)<br />
                =&gt; Membership.ValidateUser(username, password)); in AuthenticationConfiguration  ? </p>
<p>And client side, must be added in the header of the ajax request to the [Autorize] action the cookie. How can I do that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10607</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 09:29:27 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10607</guid>
		<description><![CDATA[Using forms authentication might be totally enough here, if the cookie is successfully set (and also sent by the Ajax calls), we don&#039;t need Basic Authentication. But you need to verify that.]]></description>
		<content:encoded><![CDATA[<p>Using forms authentication might be totally enough here, if the cookie is successfully set (and also sent by the Ajax calls), we don&#8217;t need Basic Authentication. But you need to verify that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by tomadj2</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10604</link>
		<dc:creator><![CDATA[tomadj2]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 08:14:58 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10604</guid>
		<description><![CDATA[Yes, I&#039;m a little lost between auth basic auth and form and what for me thinktecture. 
So, to answer your questions : 

1) I think not, because  I remove FormsAuthentication.SetAuthCookie(user.Login, true); 
I thought you told me that it&#039;s for form based auth.

2) For round-trip, I don&#039;t understand. :( 

So, already, is that we agree on the method? me I have to, in my case (webapi), the basic auth and not form based auth ?

I read again your post http://leastprivilege.com/2012/10/23/mixing-mvc-forms-authentication-and-web-api-basic-authentication/

effectively, in the sample, in the client , there are : 
 client.DefaultRequestHeaders.Authorization = 
                new BasicAuthenticationHeaderValue(&quot;alice&quot;, &quot;alice&quot;);

Me, I must do the equivalent in my ajax request to the authorize action ?? .

and also, for the time being, my action LogUser return just true if the user is validate. it is at this level that I need to do something else ? (in reference to the round trip maybe ?)]]></description>
		<content:encoded><![CDATA[<p>Yes, I&#8217;m a little lost between auth basic auth and form and what for me thinktecture.<br />
So, to answer your questions : </p>
<p>1) I think not, because  I remove FormsAuthentication.SetAuthCookie(user.Login, true);<br />
I thought you told me that it&#8217;s for form based auth.</p>
<p>2) For round-trip, I don&#8217;t understand. :( </p>
<p>So, already, is that we agree on the method? me I have to, in my case (webapi), the basic auth and not form based auth ?</p>
<p>I read again your post <a href="http://leastprivilege.com/2012/10/23/mixing-mvc-forms-authentication-and-web-api-basic-authentication/" rel="nofollow">http://leastprivilege.com/2012/10/23/mixing-mvc-forms-authentication-and-web-api-basic-authentication/</a></p>
<p>effectively, in the sample, in the client , there are :<br />
 client.DefaultRequestHeaders.Authorization =<br />
                new BasicAuthenticationHeaderValue(&#8220;alice&#8221;, &#8220;alice&#8221;);</p>
<p>Me, I must do the equivalent in my ajax request to the authorize action ?? .</p>
<p>and also, for the time being, my action LogUser return just true if the user is validate. it is at this level that I need to do something else ? (in reference to the round trip maybe ?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web API Security: Basic Authentication with Thinktecture.IdentityModel AuthenticationHandler by Dominick Baier</title>
		<link>http://leastprivilege.com/2013/04/22/web-api-security-basic-authentication-with-thinktecture-identitymodel-authenticationhandler/comment-page-1/#comment-10600</link>
		<dc:creator><![CDATA[Dominick Baier]]></dc:creator>
		<pubDate>Fri, 26 Apr 2013 05:53:49 +0000</pubDate>
		<guid isPermaLink="false">https://dominickbaier.wordpress.com/?p=1368#comment-10600</guid>
		<description><![CDATA[So the question would be - 

- Is the forms auth cookie being set when you call the login method?
- Is it round-tripped from that point on?]]></description>
		<content:encoded><![CDATA[<p>So the question would be &#8211; </p>
<p>- Is the forms auth cookie being set when you call the login method?<br />
- Is it round-tripped from that point on?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
