liquid_feedback_frontend
diff config/development.lua @ 51:0849be391140
Public read access; Read-only API for initiatives; Prepared integration of OpenID
author | bsw |
---|---|
date | Sun Apr 04 22:05:11 2010 +0200 (2010-04-04) |
parents | 72c5e0ee7c98 |
children | 88ac7798b562 |
line diff
1.1 --- a/config/development.lua Wed Mar 31 17:50:32 2010 +0200 1.2 +++ b/config/development.lua Sun Apr 04 22:05:11 2010 +0200 1.3 @@ -10,4 +10,19 @@ 1.4 config.mail_from = "LiquidFeedback" 1.5 config.mail_reply_to = "liquid-support@localhost" 1.6 1.7 -config.issue_discussion_url_func = function(issue) return "http://example.com/issue_" .. tostring(issue.id) end 1.8 \ No newline at end of file 1.9 +config.issue_discussion_url_func = function(issue) return "http://example.com/issue_" .. tostring(issue.id) end 1.10 + 1.11 +config.auth_openid_enabled = true 1.12 +config.auth_openid_https_as_default = true 1.13 + 1.14 +config.auth_openid_identifier_check_func = function(uri) 1.15 + local uri = uri:lower() 1.16 + if uri:find("^https://") then 1.17 + uri = uri:match("^https://(.*)") 1.18 + end 1.19 + if uri:find("^[0-9A-Za-z_-]+%.example%.com/?$") then 1.20 + return true 1.21 + else 1.22 + return false 1.23 + end 1.24 +end 1.25 \ No newline at end of file