Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

HTTP Basic Auth plugin workaround

Started by BB 3 years ago · 2 replies · 423 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 complanar, 2 weeks ago
2 250 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 416 2 months ago
Plugins · by Slebeig, 2 months ago
1 530 2 months ago
Plugins · by Rene, 3 months ago
2 730 3 months ago