I couldn't find an easy to understand answer in the specification document. Besides the simple answer I would be glad to get a reference to the specification describing this.
This question is a follow up for Authorization header in null when setting its value to an Encrypted SAML 2 token.
Don't worry about the soon-to-be-obsoleted specs and look here: http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p7-auth-24.html##challenge.and.response
So after the fixed
Authorization:
part, you can use:token
, followed by an optional"=" (token | quoted-string)
(see page 16 of RFC 2616) when using Digest or any other unspecified authentication scheme, or"Basic" basic-credentials
when using Basic authentication, wherebasic-credentials
are base64-encoded according to RFC 2045.I guess though that you're actually trying to ask a different question. Do you have any trouble regarding implementing a specific authorization mechanism? In what language are you trying to implement that, what code do you currently have and what is the problem?