Description
[size=150][color=blue][b]smauth (SourceMod Authentification Provider) - Lib: V 1.02.002 | Service: V 1.00.002 | ESS: V 1.00.000[/b][/color][/size]
Posted by: [color=green]Omega_K2[/color] on [color=purple]10th August 2011[/color].
[size=150][color=blue][b]Requirements:[/b][/color][/size]
[list][b][*][url=http://mattie.info/cs]EventScripts 2.0 or higher[/url]
[*][url=http://sourcemod.net]Sourcemod 1.2.0 to 1.4.0 (untested with other versions)[/url]
[*](Included) [url=http://forums.eventscripts.com/viewtopic.php?t=40076]Pubcvarlib (1.00.000 or higher)[/url]
[/b][/list]
[size=150][color=blue][b]Important Notes:[/b][/color][/size]
[list][b][size=120]If you need help you'll have to contact me on irc.gamesurge.net Channel #eventscripts[/size][/b][/list]
[size=150][color=blue][b]Description:[/b][/color][/size]
[list]
[b]What is smauth:[/b]
Smauth is a libary for python that allows you to make use of the sourcemod authentification system. It loads/reads the admin configuration files and provides an interface to use them.
[b]Example:[/b]
[url=http://addons.eventscripts.com/addons/view/pretty_status_list]Pretty Status List[/url] by Omega_K2
[b]Docs:[/b]
[url=http://german-slaughterhouse.de/docs/smauth.html]smauth Python Libary Docs (generated by pydoc)[/url]
[url=http://german-slaughterhouse.de/docs/smauth.service.service.html]smauth Service Docs (generated by pydoc)[/url] (The interesting Part is the SMAuthService)
[b]Notes:[/b]
planned to release this for a while. Too lazy for a better description, sorry... will update this with ESS-wrapper (started work on that) if there is high-enough demand. Might do a version compatible with the auth service, dunno yet.
This has been for like over half a year on ES but I was to lazy/had no time to make it properly.. so well, this is better then nothing ;)
[/list]
[size=150][color=blue][b]Installation:[/b] [/color] [/size]
Unzip into folder.
To use the service, add the following to your autoexec.cfg:
[b]es_load smauth_service[/b]
[size=150][color=blue][b]Download:[/b] [/color] [/size]
[list][b]-> [url]http://addons.eventscripts.com/addons/view/smauth[/url][/b][/list]
[color=blue][size=150][b]Version Notes:[/b][/size][/color]
[color=blue][size=130][b]Lib:[/b][/size][/color]
[list][b]1.02.002 (15th January 2013)[/b]
[list]
[*]Uses 4 spaces instead of tabs now
[*]Fixed Admin.Parse()
[*]Fixed PlayerAccess problem with passing unformatted steamid
[*]Fixed CanTarget: it is now using PlayerAccess properly instead of trying to call self[/list]
[b]1.02.001 (8th August 2012)[/b]
[list]
[*]Fixed issues with simple admin file
[*]Fixed issues with HasFlag & HasFlags[/list]
[b]1.02.000 (10th August 2011)[/b]
[list]
[*]Improved function/method descriptions
[*]Improved error checking
[*]Added PlayerAccess.HasFlags function for checking for multiple flags
[*]Now uses pubcvarlib for displaying version variables[/list]
[b]1.01.001 (16th July 2010)[/b]
[list]
[*]Version number shows up correctly now[/list]
[b]1.01.000 (16th July 2010)[/b]
[list]
[*]Replicated Flag for the version info removed
[*]PlayerAccess.HasFlag2 removed
[*]PlayerAccess.IsAdmin2 removed
[*]PlayerAccess.HasFlag and PlayerAccess.IsAdmin now behave like PlayerAccess.HasFlag2 and PlayerAccess.IsAdmin2
[*]PlayerAccess.GetImmunity, PlayerAccess.InGroup and PlayerAccess.CanTarget will return False now if the user does not exist
[*]Function IsValidFlag added
[*]Function IsValidLevel added
[*]Function IsValidGroup added[/list]
[b]1.00.001 (13th July 2010)[/b]
[list]
[*]Possible issue when subclassing PlayerAccess and using CanTarget resovled
[*]Version number changed to reflect the 1.xx.xxx format instead of 1.xx
[*]Copyright updated[/list]
[b]1.00.000 (25th June 2010)[/b]
[list]
[*]Public Release[/list][/list]
[color=blue][size=130][b]Service:[/b][/size][/color]
[list][b]1.00.003 (10th August 2011)[/b]
[list]
[*]Now uses pubcvarlib for displaying version variables
[/list]
[b]1.00.002 (16th July 2010)[/b]
[list]
[*]Directory changed to smauth_service instead of smauth/service, should load fine now
[*]Version numbers shows up correctly now[/list]
[b]1.00.001 (16th July 2010)[/b]
[list]
[*]Replicated Flag for the version info removed
[*]Function SMAuthService.unregisterCapability removed
[*]Function SMAuthService.registerCapability only shows a warning now and overrides the value incase the permission exists instead of raising an aerror
[*]Function SmAuthService.isUseridAuthorized returns properly now[/list]
[b]1.00.000 (13th July 2010)[/b]
[list]
[*]Public Release[/list][/list]
[color=blue][size=130][b]ESS:[/b][/size][/color]
[list][b]1.00.000 (10th August 2011)[/b]
[list]
[*]Public Release
[/list][/list]
[size=150][color=blue][b]Credits:[/b][/color][/size][list]
The following people are honoured to receive special thanks:
[list]
[*]None atm
[/list][/list]
Version Notes For Lib: V 1.02.002 | Service: V 1.00.002 | ESS: V 1.0
Updated on: 2013-01-15 12:44:11 EST by Omega_K2 (
View Zip Contents)
[b]1.02.002 (15th January 2013)[/b]
[list]
[*]Uses 4 spaces instead of tabs now
[*]Fixed Admin.Parse()
[*]Fixed PlayerAccess problem with passing unformatted steamid
[*]Fixed CanTarget: it is now using PlayerAccess properly instead of trying to call self[/list]
( Previous Versions )