Skip to content

Instantly share code, notes, and snippets.

View luisvm's full-sized avatar

Luis Velasco luisvm

  • Bunny, Inc.
  • San Francisco, CA
View GitHub Profile
<?xml version="1.0"?>
<samlp:Response xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" IssueInstant="2015-05-13T18:09:17Z" MajorVersion="1" MinorVersion="1" ResponseID="pfxc5e6b585-79ea-8f24-e69f-0c7fd89ed1d5" Recipient="https://pfs.postini.com/pfs/spServlet">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#pfxc5e6b585-79ea-8f24-e69f-0c7fd89ed1d5">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<?xml version="1.0"?>
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" Recipient="https://www.egencia.com/pub/agent.dll?qscr=sson&amp;gpid={gpid}" IssueInstant="2015-05-13T18:01:53Z" MinorVersion="1" MajorVersion="1" ResponseID="pfx946b3ff1-095c-403f-314b-b2099865f5bb">
<samlp:Status>
<samlp:StatusCode Value="samlp:Success"/>
</samlp:Status>
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" Issuer="https://app.onelogin-shadow.com/saml/metadata/408390" IssueInstant="2015-05-13T18:01:53Z" AssertionID="A73fd0865378c1723851f402f5c0fb371af79ba25" MinorVersion="1" MajorVersion="1">
<saml:Conditions NotOnOrAfter="2015-05-13T18:04:53Z" NotBefore="2015-05-13T17:58:53Z">
<saml:AudienceRestrictionCondition>
<saml:Audience>https://www.egencia.com/</saml:Audience>
</saml:AudienceRestrictionCondition>
@luisvm
luisvm / htaccess-personal
Created July 6, 2012 19:13
Htaccess file
AuthType Basic
AuthName "Private"
AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
Require valid-user
# BEGIN Primary Feedburner
RewriteEngine On
RewriteBase /
require 'rexml/document'
xml = File.read('cia-1996.xml')
doc = REXML::Document.new(xml)
continents = []
countries = []
doc.elements.each('cia/continent') do |continent|
continents << {:name => continent.attribute('name').to_s}
end