Thread: Custom Authentication
Created on: 02/24/11 09:51 AM
| New topic Reply | Page: 1 |
| Replies: 6 | |
| cygwin
|
02/24/11 9:51 AM Hello Mango Team, I've been trying to implement the custom authentication method mentioned here (http://www.mangoblog.org/docs/documentation/extending-mango/custom-authentication), however had no luck with the latest version (1.6). Even a copy paste of the code provided in the example did not work (with my folder names, cfc name). What am I missing here? I've edited config.cfm and reloaded the application user the admin interface, but that did not help either. Is this not compatible with v 1.6 ? Any help you can provide would be greatly appreciated Thanks |
| Link | Top | Bottom | |
| Laura
Wizard |
02/24/11 10:32 AM Hi, You are right, that piece of documentation does not apply to 1.6. Those settings have been transferred to the database. I need to update the docs, but basically, it needs to go to the setting table with the following entries: columns: id | name | value | blog_id system/authorization | methods | delegated | YOUR_BLOG_ID (usually 'default')
system/authorization/settings | component | YOUR_CFC such as mycomponents.AuthorizerTest | YOUR_BLOG_ID (usually 'default') system/authorization/settings | YOUR_PROPERTY_NAME | YOUR_VALUE | YOUR_BLOG_ID (usually 'default') you can have as many of these as needed |
| Link | Top | Bottom | |
| cygwin
|
02/24/11 2:42 PM Awesome that worked! thanks for pointing that out. I've noticed that this is not an issue when you have custom auth setup the old way in 1.5, and then update to 1.6; so retrofitting is not an issue. Is config.cfm obsolete now that it's all in DB? Thanks! |
| Link | Top | Bottom | |
| Laura
Wizard |
02/24/11 2:45 PM The auto-update makes sure all information that was stored in the config gets transfered. config.cfm is still needed for database information. |
| Link | Top | Bottom | |
| gklandes
|
05/12/11 6:00 AM I notice in the settings table that 'blog_id' is NULL for many of the rows. In a multi-instance environment would this have the effect of making those settings 'universal'? I'm looking into setting up some new instances that will need the same LDAP settings as the 'default' installation. Should I leave 'blog_id' NULL in that case? Thanks! Love the mango blog! |
| Link | Top | Bottom | |
| Laura
Wizard |
05/12/11 9:11 AM That is correct. Null values are global and values with blog_id overwrite the global value when present. That is for the values used by Mango, I don't think you would get the same behavior for plugin preferences, but I can't recall exactly. |
| Link | Top | Bottom | |
| moon13
|
05/21/13 12:46 AM [spam] |
| Link | Top | Bottom | |
New Post