merged in 5.1.2
added support for saml bearer tokens