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

Logout access forbidden

plugins

Started by Karmalakas 5 years ago · 3 replies · 621 views
5 years ago

I guess it's some Login plugin misconfiguration on my side, but can't figure out. I can login with site.login access account, but then I can't logout.

If I use login-status.html.twig template, I get:

Forbidden

You don't have permission to access /task:login.logout/logout-nonce:*** on this server.


If I take URL from login-form.html.twig

TWIG
{{ uri.addNonce(base_url_relative ~ uri.path ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce')|e }}

I just get redirected to about:blank#blocked, but still not logged out.

Visually both logout URLs look the same in source

last edited 01/09/21 by Karmalakas
5 years ago

It seems I get this only on local :/ On production I can logout without a problem. Probably some misconfiguration. Will let you know here if I figure this out

5 years ago

Am I the only one having this? :( Can't figure out what's wrong with my local env 😕

  • Absolutely fresh Grav 1.7.5
  • Admin + dependencies installed via GPM
  • Added Admin user on first page load
  • Added second user with site.login permissions only
  • Added site.login access requirement on /home page
  • Opened home page, logged in with second user, logout gives "Forbidden" error

Laragon on Win10
Latest Chrome browser

4 months ago

Old thread but this has started to happen to me. Currently I use Laragon 6 on Win 10 for coding. It all works very nicely but if I am on the homepage when I log out, I get this

TXT
Forbidden
You don't have permission to access /task:login.logout/logout-nonce:8888888888888888 on this server.

On any other page I can log out with no problem. Will test in the remote.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago