Added ssl files to allow cms SSL support (disabled by default).
Fixed typo in auth post password message. Make sure to keep site_destination set in login form, so that the user is redirected to previous location. Use default http client in the feel aggregator component, instead of forcing libcurl usage.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,4 +4,6 @@ EIFGENs
|
|||||||
*.rc
|
*.rc
|
||||||
*.bak
|
*.bak
|
||||||
*.sqlite
|
*.sqlite
|
||||||
|
.*.swo
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
*.dll
|
||||||
|
|||||||
@@ -71,6 +71,12 @@
|
|||||||
<target name="demo_standalone_scoop" extends="demo_standalone">
|
<target name="demo_standalone_scoop" extends="demo_standalone">
|
||||||
<setting name="concurrency" value="scoop"/>
|
<setting name="concurrency" value="scoop"/>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="demo_standalone_scoop_ssl" extends="demo_standalone_scoop">
|
||||||
|
<variable name="httpd_ssl_enabled" value="true"/>
|
||||||
|
<variable name="libcurl_http_client_disabled" value="true"/>
|
||||||
|
<variable name="net_http_client_disabled" value="false"/>
|
||||||
|
<variable name="netssl_http_client_enabled" value="true"/>
|
||||||
|
</target>
|
||||||
<target name="demo_cgi" extends="common">
|
<target name="demo_cgi" extends="common">
|
||||||
<setting name="concurrency" value="none"/>
|
<setting name="concurrency" value="none"/>
|
||||||
<library name="cgi_launcher" location="..\..\launcher\cgi-safe.ecf" readonly="false"/>
|
<library name="cgi_launcher" location="..\..\launcher\cgi-safe.ecf" readonly="false"/>
|
||||||
|
|||||||
15
examples/demo/demo.crt
Normal file
15
examples/demo/demo.crt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIICWDCCAcGgAwIBAgIJAJnXGtV+PtiYMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
|
||||||
|
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
|
||||||
|
aWRnaXRzIFB0eSBMdGQwHhcNMTUwNDAzMjIxNTA0WhcNMTYwNDAyMjIxNTA0WjBF
|
||||||
|
MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
|
||||||
|
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
|
||||||
|
gQDFMK6ojzg+KlklhTossR13c51izMgGc3B0z9ttfHIcx2kxra3HtHcKIl5wSUvn
|
||||||
|
G8zmSyFAyQTs5LUv65q46FM9qU8tP+vTeFCfNXvjRcIEpouta3J53K0xuUlxz4d4
|
||||||
|
4D6qvdDWAez/0AkI4y5etW5zXtg7IQorJhsI9TmfGuruzwIDAQABo1AwTjAdBgNV
|
||||||
|
HQ4EFgQUbWpk2HoHa0YqpEwr7CGEatBFTMkwHwYDVR0jBBgwFoAUbWpk2HoHa0Yq
|
||||||
|
pEwr7CGEatBFTMkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQAi+h4/
|
||||||
|
IgEocWkdRZBKHEcTrRxz5WhEDJMoVo9LhnXvCfn1G/4p6Un6sYv7Xzpi9NuSY8uV
|
||||||
|
cjfJJXhtF3AtyZ70iTAxWaRWjGaZ03PYOjlledJ5rqJEt6CCn8m+JsfznduZvbxQ
|
||||||
|
zQ6jCLXfyD/tvemB+yYEI3NntvRKx5/zt6Q26Q==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
port=9090
|
port=9090
|
||||||
#port=12345
|
#port=12345
|
||||||
#verbose=true
|
verbose=true
|
||||||
|
socket_timeout=60
|
||||||
|
socket_recv_timeout=45
|
||||||
|
keep_alive_timeout=25
|
||||||
|
ssl_enabled=false
|
||||||
|
ssl_ca_key=demo.key
|
||||||
|
ssl_ca_crt=demo.crt
|
||||||
|
|||||||
15
examples/demo/demo.key
Normal file
15
examples/demo/demo.key
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIICXAIBAAKBgQDFMK6ojzg+KlklhTossR13c51izMgGc3B0z9ttfHIcx2kxra3H
|
||||||
|
tHcKIl5wSUvnG8zmSyFAyQTs5LUv65q46FM9qU8tP+vTeFCfNXvjRcIEpouta3J5
|
||||||
|
3K0xuUlxz4d44D6qvdDWAez/0AkI4y5etW5zXtg7IQorJhsI9TmfGuruzwIDAQAB
|
||||||
|
AoGAR5efMg+dieRyLU8rieJcImxVbfOPg9gRsjdtIVkXTR+RL7ow59q7hXBo/Td/
|
||||||
|
WU8cm1gXoJ/bK+71YYqWyB+BaLRIWvRWb7Gdw203tu4e136Ca5uuY+71qdbVTVcl
|
||||||
|
NQ7J+T+eAQFP+a+DdT3ZQxu9eze87SMbu6i5YSpIk2kusOECQQDunv/DQ+nc+NgR
|
||||||
|
DF+Td3sNYUVRT9a1CWi6abAG6reXwp8MS4NobWDf+Ps4JODhEEwlIdq5qL7qqYBZ
|
||||||
|
Gc1TJJ53AkEA0404Fn6vAzzegBcS4RLlYTK7nMr0m4pMmDMCI6YzAYdMmKHp1e6f
|
||||||
|
IwxSmQrmwyAgwcT01bc0+A8yipcC2BWQaQJBAJ01QZm635OGmos41KsKF5bsE8gL
|
||||||
|
SpBBH69Yu/ECqGwie7iU84FUNnO4zIHjwghlPVVlZX3Vz9o4S+fn2N9DC+cCQGyZ
|
||||||
|
QyCxGdC0r5fbwHJQS/ZQn+UGfvlVzqoXDVMVn3t6ZES6YZrT61eHnOM5qGqklIxE
|
||||||
|
Old3vDZXPt/MU8Zvk3kCQBOgUx2VxvTrHN37hk9/QIDiM62+RenBm1M3ah8xTosf
|
||||||
|
1mSeEb6d9Kwb3TgPBmA7YXzJuAQfRIvEPMPxT5SSr6Q=
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
<div>
|
<div>
|
||||||
<p>We have send you a new token code, check your email to generate a new password</p>
|
<p>We have sent you a new token code, check your email to generate a new password</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
||||||
<div>
|
<div>
|
||||||
<form name="cms_basic_auth" action="{$site_url/}roc-basic-login" method="POST">
|
<form name="cms_basic_auth" action="{$site_url/}roc-basic-login" method="POST">
|
||||||
|
{unless isempty="$site_destination"}<input type="hidden" name="destination" value="{$site_destination/}">{/unless}
|
||||||
<input type="hidden" name="host" id="host" value="{$site_url/}">
|
<input type="hidden" name="host" id="host" value="{$site_url/}">
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="username" id="username" required>
|
<input type="text" name="username" id="username" required>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"blocks": {
|
"blocks": {
|
||||||
"test": {
|
"test": {
|
||||||
"title": "Custom block test",
|
"title": "Custom block test",
|
||||||
|
"is_raw": "yes",
|
||||||
"region": "footer",
|
"region": "footer",
|
||||||
"weight": 100,
|
"weight": 100,
|
||||||
"conditions": ["path:demo/*"]
|
"conditions": ["path:demo/*"]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
||||||
<div>
|
<div>
|
||||||
<form name="cms_session_auth" action="{$site_url/}account/auth/roc-session-login" method="POST">
|
<form name="cms_session_auth" action="{$site_url/}account/auth/roc-session-login" method="POST">
|
||||||
|
{unless isempty="$site_destination"}<input type="hidden" name="destination" value="{$site_destination/}">{/unless}
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="username" id="username" required value="{$username/}">
|
<input type="text" name="username" id="username" required value="{$username/}">
|
||||||
<label>Username</label>
|
<label>Username</label>
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ feature -- Access
|
|||||||
|
|
||||||
get_http_session
|
get_http_session
|
||||||
local
|
local
|
||||||
h: LIBCURL_HTTP_CLIENT
|
h: DEFAULT_HTTP_CLIENT
|
||||||
b: like base_url
|
b: like base_url
|
||||||
do
|
do
|
||||||
create h.make
|
create h
|
||||||
b := base_url
|
b := base_url
|
||||||
if b = Void then
|
if b = Void then
|
||||||
b := ""
|
b := ""
|
||||||
|
|||||||
@@ -143,9 +143,9 @@ feature -- Operation
|
|||||||
|
|
||||||
new_http_client_session (a_url: READABLE_STRING_8): HTTP_CLIENT_SESSION
|
new_http_client_session (a_url: READABLE_STRING_8): HTTP_CLIENT_SESSION
|
||||||
local
|
local
|
||||||
cl: LIBCURL_HTTP_CLIENT
|
cl: DEFAULT_HTTP_CLIENT
|
||||||
do
|
do
|
||||||
create cl.make
|
create cl
|
||||||
Result := cl.new_session (a_url)
|
Result := cl.new_session (a_url)
|
||||||
Result.set_is_insecure (True)
|
Result.set_is_insecure (True)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user