Question

Connect REST password Base64

Hi

I have a requirement to send username/password using Base64. Does Basic Authication Profile use Base64..? If not, is there an alternative..?

Thanks

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
December 20, 2016 - 1:05am

For basic authentication, username/password uses base64 encoding.

You can check in the soap /rest /http headers once you basic authentication applied.

ex: Soap header:

<soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-3930A8D796899C587114822133705911"><wsse:Username>admin@gcsau</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">rules</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">GWntQNIfseSxp5DLH9jbUw==</wsse:Nonce><wsu:Created>2016-12-20T05:56:10.589Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>

Comments

Keep up to date on this post and subscribe to comments

December 19, 2016 - 1:19am

Pega
December 20, 2016 - 1:05am

For basic authentication, username/password uses base64 encoding.

You can check in the soap /rest /http headers once you basic authentication applied.

ex: Soap header:

<soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-3930A8D796899C587114822133705911"><wsse:Username>admin@gcsau</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">rules</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">GWntQNIfseSxp5DLH9jbUw==</wsse:Nonce><wsu:Created>2016-12-20T05:56:10.589Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>