Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

HTTP Basic Auth plugin workaround

Started by BB 3 years ago · 2 replies · 573 views
3 years ago

@bbgrav, That plugin is 8 years old and has never received an update... I'm also not sure what its added value is over the Login plugin.

Are you aware of the already installed Login plugin? See the docs for creating a Private Area on your site.

last edited 12/14/23 by pamtbaau
3 years ago

Lots of tools and browser plugins work with HTTP Basic Auth. Its a standard.

In my case, the whole domain is password protected.

The plugin code works up until this point:

PHP
   // Success
        $this->grav['session']->user = $user;
        unset($this->grav['user']);
        $this->grav['user'] = $user;
        return $user->authenticated = $user->authorize('site.login');

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago