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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

HTTP Basic Auth plugin workaround

Started by BB 3 years ago · 2 replies · 281 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 Rene, 1 week ago
2 49 1 week ago
Plugins · by Xavier, 4 weeks ago
2 57 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1184 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 75 2 months ago