Domanda

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

Authorization:Basic  jadfasdbaHGDWDSJDN==
È stato utile?

Soluzione

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;
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top