Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.19 KB

AuthPanel.md

File metadata and controls

45 lines (31 loc) · 1.19 KB

DebugKit Auth Panel

The TinyAuth plugin ships with a useful DebugKit panel to show quickly if the current action

  • is public (allowed in auth_allow.ini) or protected
  • if protected what roles have access to it

Also:

  • auth status of current user (guest, logged in, ...)
  • if logged in your current role(s)

Public action (quick icon):

public

Protected action (quick icon):

public

Panel showcase once opened as "guest":

panel

Panel showcase as "logged in user":

panel

Enable the panel

Activate the panel in your config:

    'DebugKit' => [
        'panels' => [
            ...
            'TinyAuth.Auth' => true,
        ],
    ],

Now it should be visible in your DebugKit panel list.

Note: If you only use TinyAuth authentication or authorization (and not both) it will usually detect this and not display the unused part. Make sure you enabled the documented components and helpers here to have all features enabled.

Notes

The allow/ACL data only works correctly, if you don't use any Controller allow()/deny() injections. You should first migrate away from those before using this panel.