简体   繁体   English

从休假请求中获取授权标头

[英]get Authorization Header from Recess Request

I'm using the recess framework. 我正在使用隐式框架。 Does somebody knows how to get the Authorization header from the request. 有人知道如何从请求中获取授权标头。

Normally, to get the request, we do $this->request , but how to extract the Authorization header which is in a form 通常,要获取请求,我们执行$this->request ,但是如何提取形式为Authorization的标头

Authorization:Basic  jadfasdbaHGDWDSJDN==

When the request arrives at the server, the username and password is already decoded, to get the 当请求到达服务器时,用户名和密码已经解码,以获取

$Username=$this->request->username;
$Password=$this->request->password;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM