@
@
@gugozoha2016-04-28 16:02:33
Laravel
@gugozoha, 2016-04-28 16:02:33

How to hardcode login and password in HTTP BASIC authentication?

I can not understand how this authentication works. You need to hardcode your username and password.
laravel.su/docs/5.0/authentication#http-basic-auth...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2016-04-28
@Denormalization

What exactly is unclear?
The usual Basic Auth authorization is used, the login and password are taken from the database (as with normal authorization).
If you need to "hard" set the login \ password, then you can write your own implementation of basic auth, or simply add a rule to .htaccess and put .htpassword somewhere.

M
Mikhail Osher, 2016-04-28
@miraage

This authorization works through mail-password in the database.
You need to use htpasswd (apache-utils) and nginx to create a standard http basic authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question