tweaking gem to work with XBox SAML tokens