|
|
|
Identity in .NET 4.5Part 2 Claims Transformation in ASP.NET Beta 1 |
Si vous voulez bloquer ce service sur vos fils RSS
Si vous voulez nous contacter ou nous proposer un fil RSS
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Identity in .NET 4.5Part 2 Claims Transformation in ASP.NET Beta 1 Par www.leastprivilege.comLe [2012-04-04] à 08:23:49
Présentation : In my last post I described how every identity in .NET 4.5 is now claims-based. If you are coming from WIF you might think, great how do I transform those claims Sidebar What is claims transformation One of the most essential features of WIF and .NET 4.5 is the ability to transform credentials or tokens to claims. During that process the low level token details are turned into claims. An example would be a Windows token it contains things like the name of the user and to which groups he belongs to. That information will be surfaced as claims of type Name and GroupSid. Forms users will be represented as a Name claim all the other claims that WIF provided for FormsIdentity are gone in 4.5 . The issue here is, that your applications typically don t care about those low level details, but rather about what s the purchase limit of alice . The process of turning the low level claims into application specific ones is called claims transformation. In pre-claims times this would have been done by a combination of Forms Authentication extensibility, role manager and maybe ASP.NET profile. With claims transformation all your identity gathering code is in one place and the outcome can be cached in a single place as opposed to multiple ones . The structural class to do claims transformation is called ClaimsAuthenticationManager. This class has two purposes first looking at the incoming low level principal and making sure all required information about the user is present. This is your first chance to reject a request. And second modeling identity information in a way it is relevant for the application see also here . This class gets called when present during the pipeline when using WS-Federation. But not when using the standard .NET principals. I am not sure why maybe because it is beta 1. Anyhow, a number of people asked me about it, and the following is a little HTTP module that brings that feature back in 4.5. public class ClaimsTransformationHttpModule IHttpModule public void Dispose public void Init HttpApplication context context.PostAuthenticateRequest Context_PostAuthenticateRequest void Context_PostAuthenticateRequest object sender, EventArgs e var context HttpApplication sender .Context no need to call transformation if session already exists if FederatedAuthentication.SessionAuthenticationModule null FederatedAuthentication.SessionAuthenticationModule.ContainsSessionTokenCookie context.Request.Cookies return var transformer FederatedAuthentication.FederationConfiguration.IdentityConfiguration.ClaimsAuthenticationManager if transformer null var transformedPrincipal transformer.Authenticate context.Request.RawUrl, context.User as ClaimsPrincipal context.User transformedPrincipal Thread .CurrentPrincipal transformedPrincipal HTH
Les mots clés de la revue de presse pour cet article : identity Les videos sur SecuObs pour les mots clés : identity Les éléments de la revue Twitter pour les mots clé : identity
Les derniers articles du site "www.leastprivilege.com" :
- Moving to a new Blog - API for the X509 Certificate Store - Thinktecture.IdentityModel.Http and the ASP.NET Web API CodePlex bits - Identity in .NET 4.5Part 4 Claims over Kerberos - Thinktecture IdentityServer and Contrib Project now on GitHub - Identity in .NET 4.5Part 3 Breaking changes - Identity in .NET 4.5Part 2 Claims Transformation in ASP.NET Beta 1 - Identity in .NET 4.5Part 1 Status Quo Beta 1 - ASP.NET WebAPI Security 5 JavaScript Clients - ASP.NET WebAPI Security 4 Examples for various Authentication Scenarios
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Si vous voulez bloquer ce service sur vos fils RSS :
- avec iptables "iptables -A INPUT -s 88.190.17.190 --dport 80 -j DROP"
- avec ipfw et wipfw "ipfw add deny from 88.190.17.190 to any 80"
- Nous contacter par mail
| Mini-Tagwall des articles publiés sur SecuObs : | | | | sécurité, exploit, windows, attaque, outil, microsoft, réseau, audit, metasploit, vulnérabilité, système, virus, internet, usbsploit, données, source, linux, protocol, présentation, scanne, réseaux, scanner, bluetooth, conférence, reverse, shell, meterpreter, vista, rootkit, détection, mobile, security, malicieux, engineering, téléphone, paquet, trames, https, noyau, utilisant, intel, wishmaster, google, sysun, libre |
| Mini-Tagwall de l'annuaire video : | | | | curit, security, biomet, metasploit, biometric, cking, password, windows, botnet, defcon, tutorial, crypt, xploit, exploit, lockpicking, linux, attack, wireshark, vmware, rootkit, conference, network, shmoocon, backtrack, virus, conficker, elcom, etter, elcomsoft, server, meterpreter, openvpn, ettercap, openbs, iphone, shell, openbsd, iptables, securitytube, deepsec, source, office, systm, openssh, radio |
| Mini-Tagwall des articles de la revue de presse : | | | | security, microsoft, windows, hacker, attack, network, vulnerability, google, exploit, malware, internet, remote, iphone, server, inject, patch, apple, twitter, mobile, virus, ebook, facebook, vulnérabilité, crypt, source, linux, password, intel, research, virtual, phish, access, tutorial, trojan, social, privacy, firefox, adobe, overflow, office, cisco, conficker, botnet, pirate, sécurité |
| Mini-Tagwall des Tweets de la revue Twitter : | | | | security, linux, botnet, attack, metasploit, cisco, defcon, phish, exploit, google, inject, server, firewall, network, twitter, vmware, windows, microsoft, compliance, vulnerability, python, engineering, source, kernel, crypt, social, overflow, nessus, crack, hacker, virus, iphone, patch, virtual, javascript, malware, conficker, pentest, research, email, password, adobe, apache, proxy, backtrack |
|
|
|
|
|