Mani basic auth

From EventScripts Community Encyclopedia

mani_basic_auth is an AuthorizationService provider that ships with EventScripts. It reads the clients.txt file from Mani and translates it to capabilities which are used for authorization.

Overview

mani_basic_auth is very similar to basic_auth in that any player designated as admin has access to all unique addon permissions with the default level of admin or below. In addition, mani_basic_auth imports the flags designated to users in your ./cfg/mani_admin_plugin/clients.txt and registers those flags as permissions with the prefix "mani_flag_" -- such that the a flag translates to the permission mani_flag_a, the pban flag translates to the permission mani_flag_pban, etc. Addon authors can check the flag permissions in their addons if they want to support Mani flags. Any player with the mani_flag_admin permission is considered an admin to mani_basic_auth.

Usage

To load mani_basic_auth put the following at the beginning of your autoexec.cfg:

es_load examples/auth/mani_basic_auth

See Also

  • Authorization FAQ -- A FAQ about ES authorization providers.
  • basic_auth -- A simple authorization provider.
  • ini_tree_auth -- An intermediate authorization provider that relies on an ini-based tree file for permissions. This authorization provider can also import Mani's clients.txt.
  • group_auth -- An advanced authorization provider with user- and group-based access to unique addon permissions.
blog comments powered by Disqus