c# - ASP.Net Core - Turn SAML assertion into ClaimsPrincipal -


there's question using saml in asp.net core, need additional help.

the answer there mentions kentor.authservices, don't understand how use it. find on or other saml libraries, documentation, blog posts, , sample applications contacting external authentication service , handling login , logout.

but don't need of that. setup i'm working in edge-facing firewall application, , login/logout requests never reach application. saml token in cookie, need validate , turn claimsprincipal. can't (the deployment network setup insanely paranoid) , don't want contact identity provider.

currently i've written piece of middleware takes cookie, parses it, , parses out parts need claims principal. don't validation, either of xml signature or of saml validity (valid time attributes etc). .net core 2.0 preview 2 can xml signature validation, i'm still stuck on doing saml validation. there library validates saml constraints , nothing else (or, @ least, can ignore else)? believe kentor or itfoxtec or elerch's saml2.core must contain such functionality, can't figure out is.

http://blog.scottlogic.com/2015/11/19/oauth2-with-saml2.html

this blog of scott has explained in simple way.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -