Changes between Version 4 and Version 5 of ScriptAuthPlugin
- Timestamp:
- Apr 17, 2015, 3:21:33 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ScriptAuthPlugin
v4 v5 1 = Script authentication for AccountManagerPlugin = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 == Description == 3 = Script authentication for AccountManagerPlugin 4 5 == Description 4 6 5 7 Similar to normal HTTP Authentication, this plugin uses explicit URL parameters for transferring the username and password to a web script that implements the check and returns the authentication result in the HTTP response code and content. 6 8 When possible, the users email address is transferred and set as well. 7 9 8 9 == Bugs/Feature Requests == 10 == Bugs/Feature Requests 10 11 11 12 Existing bugs and feature requests for ScriptAuthPlugin are … … 15 16 [http://trac-hacks.org/newticket?component=ScriptAuthPlugin&owner=Carsten new ticket]. 16 17 17 == Download and Source == 18 [[TicketQuery(component=ScriptAuthPlugin&group=type,format=progress)]] 19 20 == Download and Source 18 21 19 22 Download the zipped source from [download:scriptauthplugin here], check out [/svn/scriptauthplugin using Subversion], or [source:scriptauthplugin browse the source] with Trac. 20 23 21 == Installation ==24 == Installation 22 25 23 * First make sure you have AccountManagerPlugin installed 24 * Grab the source 25 * Unpack the source 26 * Change into the source directory that contains the `setup.py` file 26 * AccountManagerPlugin must be installed. 27 * Grab and unpack the source. 28 * Change into the source directory that contains the `setup.py` file. 27 29 * Build an egg: 28 {{{ 30 {{{#!sh 29 31 python setup.py bdist_egg 30 32 }}} 31 * Copy the egg, found in `dist/` to the `plugins` directory of the desired trac environment33 * Copy the egg, found in `dist/` to the `plugins` directory of the desired Trac environment. 32 34 33 == Configuration ==35 == Configuration 34 36 35 Set the URL of the script that does the authentication :37 Set the URL of the script that does the authentication by adding the following to your `trac.ini` file: 36 38 37 {{{ 39 {{{#!ini 38 40 [account-manager] 39 41 # password_store = ScriptAuthStore # When using ScriptAuthStore alone. … … 47 49 The script at `script_auth_url` is expected to return `ok` followed by newline followed by the email address of the user 48 50 as the HTTP content when the user details are valid, or anything else otherwise. 49 (The HTTP result codes like 200 and 401 can unfortunately not (easily) be utilized with Python <= 2.4.) 51 52 The HTTP result codes like 200 and 401 can unfortunately not (easily) be utilized with Python <= 2.4. 50 53 51 54 An example for a script that implements authentication against the phpBB forum database is available [http://www.phpbb.de/community/viewtopic.php?p=1155503#p1155503 here]. 52 55 It is useful when you cannot use the PhpBbAuthPlugin directly, e.g. because the phpBB database is not accessible from your Trac host. 53 56 54 55 == Recent Changes == 57 == Recent Changes 56 58 57 59 [[ChangeLog(scriptauthplugin, 3)]] 58 60 59 == Author/Contributors ==61 == Author/Contributors 60 62 61 63 '''Author:''' [wiki:Carsten] [[BR]] 62 '''Maintainer:''' [ wiki:Carsten] [[BR]]64 '''Maintainer:''' [[Maintainer]] [[BR]] 63 65 '''Contributors:''' http://www.cafu.de