Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

HTTP Basic Auth plugin workaround

Started by BB 3 years ago · 2 replies · 387 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 Vladimir Novak, 2 weeks ago
3 292 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago