多个HTTP报头的授权? [英] Multiple HTTP Authorization headers?
本文介绍了多个HTTP报头的授权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能包括HTTP消息多个授权头?具体来说,我想包括承载令牌类型之一(通过OAuth访问令牌)和基本类型之一(通过一个base64连接codeD的用户名:密码)。
Is it possible to include multiple Authorization Headers in an HTTP message? Specifically, I would like to include one of Bearer token type (passing an OAuth access token) and one of Basic type (passing a base64 encoded username:password).
GET /presence/alice HTTP/1.1
Host: server.example.com
Authorization: Bearer mF_9.B5f-4.1JqM
Authorization: Basic YXNkZnNhZGZzYWRmOlZLdDVOMVhk
我认为没有理由这不应该是可能的,只是想与社区兽医这是肯定的。
I see no reason this should not be possible, just wanted to vet it with the community to be sure.
推荐答案
没有,这是不可能的。请参阅 http://greenbytes.de/tech/webdav/rfc7235的语法定义。 HTML#header.authorization
No, it's not possible. See the syntax definition in http://greenbytes.de/tech/webdav/rfc7235.html#header.authorization
这篇关于多个HTTP报头的授权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文