29.07.2016 Views

laravel-5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Authentication 151<br />

.<br />

1 RewriteCond %{HTTP:Authorization} ^(.+)$<br />

2 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]<br />

Stateless HTTP Basic Authentication<br />

You may also use HTTP Basic Authentication without setting a user identifier cookie in the session,<br />

which is particularly useful for API authentication. To do so, define a middleware that calls the<br />

onceBasic method. If no response is returned by the onceBasic method, the request may be passed<br />

further into the application:<br />

.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!