|
5 | 5 | | ------------------------------------------------------------------- |
6 | 6 | | Aauth Config |
7 | 7 | | ------------------------------------------------------------------- |
8 | | -| A library Basic Authorization for CodeIgniter 2+ |
| 8 | +| A library Basic Authorization for CodeIgniter 2.x and 3.x |
9 | 9 | | |
10 | 10 | | ------------------------------------------------------------------- |
11 | 11 | | EXPLANATION |
12 | 12 | | ------------------------------------------------------------------- |
13 | 13 | | |
14 | | -| See http://codeigniter-aauth-test.readthedocs.org/en/latest/ |
15 | | -| for more details and explainations |
| 14 | +| ['no_permission'] If user don't have permisssion to see the page he will be redirected the page spesificed. |
16 | 15 | | |
| 16 | +| ['admin_group'] Name of admin group |
| 17 | +| ['default_group'] Name of default group, the new user is added in it |
| 18 | +| ['public_group'] Public group , people who not logged in |
17 | 19 | | |
18 | | -| ['no_permission'] If user don't have permisssion to see the page he will be redirected the page spesificed. |
| 20 | +| ['db_profile'] The configuration database profile (definied in config/database.php) |
19 | 21 | | |
20 | | -| ['admin_group'] Name of admin group |
21 | | -| ['default_group'] Name of default group, the new user is added in it |
22 | | -| ['public_group'] Public group , people who not logged in |
| 22 | +| ['users'] The table which contains users |
| 23 | +| ['groups'] The table which contains groups |
| 24 | +| ['user_to_group'] The table which contains join of users and groups |
| 25 | +| ['perms'] The table which contains permissions |
| 26 | +| ['perm_to_group'] The table which contains permissions for groups |
| 27 | +| ['perm_to_user'] The table which contains permissions for users |
| 28 | +| ['pms'] The table which contains private messages |
| 29 | +| ['user_variables'] The table which contains users variables |
| 30 | +| ['login_attempts'] The table which contains login attempts |
23 | 31 | | |
24 | | -| ['db_profile'] The configuration database profile (see config/database.php) |
| 32 | +| ['remember'] Remember time (in relative format) elapsed after connecting and automatic LogOut for usage with Cookies |
| 33 | +| Relative Format (e.g. '+ 1 week', '+ 1 month', '+ first day of next month') |
| 34 | +| for details see http://php.net/manual/de/datetime.formats.relative.php |
| 35 | +| !!IMPORTANT!! If you use Session instead of Cookies, |
| 36 | +| remember time is definied by 'sess_expiration' in config/config.php |
25 | 37 | | |
26 | | -| ['users'] The table which contains users |
27 | | -| ['groups'] The table which contains groups |
28 | | -| ['user_to_group'] The table which contains join of users and groups |
29 | | -| ['perms'] The table which contains permissions |
30 | | -| ['perm_to_group'] The table which contains permissions for groups |
31 | | -| ['perm_to_user'] The table which contains permissions for users |
32 | | -| ['pms'] The table which contains private messages |
33 | | -| ['user_variables'] The table which contains users variables |
34 | | -| ['login_attempts'] The table which contains login attempts |
| 38 | +| ['max'] Maximum char long for Password |
| 39 | +| ['min'] Minimum char long for Password |
35 | 40 | | |
36 | | -| ['remember'] Remember time elapsed after connecting and automatic LogOut |
| 41 | +| ['additional_valid_chars'] Additional valid chars for username. Non alphanumeric characters that are allowed by default |
37 | 42 | | |
38 | | -| ['max'] Maximum char long for Password |
39 | | -| ['min'] Minimum char long for Password |
| 43 | +| ['ddos_protection'] If it is true, the user will be banned temporary when he exceed the login 'try' |
40 | 44 | | |
41 | | -| ['additional_valid_chars'] Additional valid chars for username. Non alphanumeric characters that are allowed by default |
| 45 | +| ['recaptcha_active'] Enable reCAPTCHA (for details see www.google.com/recaptcha/admin) |
| 46 | +| ['recaptcha_login_attempts'] Login Attempts to display reCAPTCHA |
| 47 | +| ['recaptcha_siteKey'] The reCAPTCHA siteKey |
| 48 | +| ['recaptcha_secret'] The reCAPTCHA secretKey |
42 | 49 | | |
43 | | -| ['ddos_protection'] If it is true, the user will be banned temporary when he exceed the login 'try' |
| 50 | +| ['totp_active'] The Time-based One-time Password Algorithm |
| 51 | +| ['totp_only_on_ip_change'] TOTP only on IP Change |
| 52 | +| ['totp_reset_over_reset_password'] TOTP reset over reset Password |
| 53 | +| ['totp_two_step_login'] Enables/Disables TOTP two step login |
| 54 | +| ['totp_two_step_login_redirect'] Redirect path to TOTP Verification page used by control() & is_allowed() |
44 | 55 | | |
45 | | -| ['recaptcha_active'] Enable reCAPTCHA (see www.google.com/recaptcha/admin) |
46 | | -| ['recaptcha_login_attempts'] : |
47 | | -| ['recaptcha_siteKey'] The reCAPTCHA siteKey |
48 | | -| ['recaptcha_secret'] The reCAPTCHA secretKey |
| 56 | +| ['max_login_attempt'] Login attempts time interval (default 10 times in one hour) |
| 57 | +| ['max_login_attempt_time_period'] Period of time for max login attempts (default "5 minutes") |
| 58 | +| ['remove_successful_attempts'] Enables/Disables removing login attempt after successful login |
49 | 59 | | |
50 | | -| ['totp_active'] The Time-based One-time Password Algorithm |
51 | | -| ['totp_only_on_ip_change'] TOTP only on IP Change |
52 | | -| ['totp_reset_over_reset_password'] TOTP reset over reset Password |
53 | | -| ['totp_two_step_login'] Enables/Disables TOTP two step login |
54 | | -| ['totp_two_step_login_redirect'] Redirect path to TOTP Verification page used by control() & is_allowed() |
| 60 | +| ['login_with_name'] Login Identificator, if TRUE username needed to login else email address. |
55 | 61 | | |
56 | | -| ['max_login_attempt'] Login attempts time interval (default 10 times in one hour) |
57 | | -| ['max_login_attempt_time_period'] Period of time for max login attempts (default "5 minutes") |
58 | | -| ['remove_successful_attempts'] Enables/Disables removing login attempt after successful login |
| 62 | +| ['use_cookies'] FALSE only on CI3 |
59 | 63 | | |
60 | | -| ['login_with_name'] Login Identificator, if TRUE username needed to login else email address. |
| 64 | +| ['email'] Sender email address, used for remind_password, send_verification and reset_password |
| 65 | +| ['name'] Sender name, used for remind_password, send_verification and reset_password |
61 | 66 | | |
62 | | -| ['use_cookies'] FALSE only on CI3 |
| 67 | +| ['verification'] User Verification, if TRUE sends a verification email on account creation. |
| 68 | +| ['verification_link'] Link for verification without site_url or base_url |
| 69 | +| ['reset_password_link'] Link for reset_password without site_url or base_url |
63 | 70 | | |
64 | | -| ['email'] Sender email address, used for remind_password, send_verification and reset_password |
65 | | -| ['name'] Sender name, used for remind_password, send_verification and reset_password |
66 | | -| |
67 | | -| ['verification'] User Verification, if TRUE sends a verification email on account creation. |
68 | | -| ['verification_link'] Link for verification without site_url or base_url |
69 | | -| ['reset_password_link'] Link for reset_password without site_url or base_url |
70 | | -| |
71 | | -| ['hash'] Name of selected hashing algorithm (e.g. "md5", "sha256", "haval160,4", etc..) |
| 71 | +| ['hash'] Name of selected hashing algorithm (e.g. "md5", "sha256", "haval160,4", etc..) |
72 | 72 | | Please, run hash_algos() for know your all supported algorithms |
73 | | -| ['use_password_hash'] True to use PHP's own password_hash() function with BCrypt, needs PHP5.5 or higher |
74 | | -| ['password_hash_algo'] password_hash algorithm (PASSWORD_DEFAULT, PASSWORD_BCRYPT) for details see http://php.net/manual/de/password.constants.php |
75 | | -| ['password_hash_options'] password_hash options array for details see http://php.net/manual/en/function.password-hash.php |
| 73 | +| ['use_password_hash'] True to use PHP's own password_hash() function with BCrypt, needs PHP5.5 or higher |
| 74 | +| ['password_hash_algo'] password_hash algorithm (PASSWORD_DEFAULT, PASSWORD_BCRYPT) |
| 75 | +| for details see http://php.net/manual/de/password.constants.php |
| 76 | +| ['password_hash_options'] password_hash options array |
| 77 | +| for details see http://php.net/manual/en/function.password-hash.php |
| 78 | +| |
| 79 | +| ['pm_encryption'] Enables/Disables PM Encryption, needs configured CI Encryption Class. |
| 80 | +| for details see: http://www.codeigniter.com/userguide2/libraries/encryption.html |
| 81 | +| ['pm_cleanup_max_age'] PM Cleanup max age (in relative format), PM's are older than max age get deleted with 'cleanup_pms()' |
| 82 | +| Relative Format (e.g. '2 week', '1 month') |
| 83 | +| for details see http://php.net/manual/de/datetime.formats.relative.php |
76 | 84 | | |
77 | 85 | */ |
78 | 86 | $config_aauth = array(); |
79 | 87 |
|
80 | 88 | $config_aauth["default"] = array( |
81 | | - 'no_permission' => FALSE, |
| 89 | + 'no_permission' => FALSE, |
82 | 90 |
|
83 | | - 'admin_group' => 'admin', |
84 | | - 'default_group' => 'default', |
85 | | - 'public_group' => 'public', |
| 91 | + 'admin_group' => 'admin', |
| 92 | + 'default_group' => 'default', |
| 93 | + 'public_group' => 'public', |
86 | 94 |
|
87 | | - 'db_profile' => 'default', |
| 95 | + 'db_profile' => 'default', |
88 | 96 |
|
89 | | - 'users' => 'aauth_users', |
90 | | - 'groups' => 'aauth_groups', |
91 | | - 'group_to_group' => 'aauth_group_to_group', |
92 | | - 'user_to_group' => 'aauth_user_to_group', |
93 | | - 'perms' => 'aauth_perms', |
94 | | - 'perm_to_group' => 'aauth_perm_to_group', |
95 | | - 'perm_to_user' => 'aauth_perm_to_user', |
96 | | - 'pms' => 'aauth_pms', |
97 | | - 'user_variables' => 'aauth_user_variables', |
98 | | - 'login_attempts' => 'aauth_login_attempts', |
| 97 | + 'users' => 'aauth_users', |
| 98 | + 'groups' => 'aauth_groups', |
| 99 | + 'group_to_group' => 'aauth_group_to_group', |
| 100 | + 'user_to_group' => 'aauth_user_to_group', |
| 101 | + 'perms' => 'aauth_perms', |
| 102 | + 'perm_to_group' => 'aauth_perm_to_group', |
| 103 | + 'perm_to_user' => 'aauth_perm_to_user', |
| 104 | + 'pms' => 'aauth_pms', |
| 105 | + 'user_variables' => 'aauth_user_variables', |
| 106 | + 'login_attempts' => 'aauth_login_attempts', |
99 | 107 |
|
100 | | - 'remember' => ' +3 days', |
| 108 | + 'remember' => ' +3 days', |
101 | 109 |
|
102 | | - 'max' => 13, |
103 | | - 'min' => 5, |
| 110 | + 'max' => 13, |
| 111 | + 'min' => 5, |
104 | 112 |
|
105 | | - 'additional_valid_chars' => array(), |
| 113 | + 'additional_valid_chars' => array(), |
106 | 114 |
|
107 | | - 'ddos_protection' => true, |
| 115 | + 'ddos_protection' => true, |
108 | 116 |
|
109 | | - 'recaptcha_active' => false, |
110 | | - 'recaptcha_login_attempts' => 4, |
111 | | - 'recaptcha_siteKey' => '', |
112 | | - 'recaptcha_secret' => '', |
| 117 | + 'recaptcha_active' => false, |
| 118 | + 'recaptcha_login_attempts' => 4, |
| 119 | + 'recaptcha_siteKey' => '', |
| 120 | + 'recaptcha_secret' => '', |
113 | 121 |
|
114 | | - 'totp_active' => false, |
115 | | - 'totp_only_on_ip_change' => false, |
116 | | - 'totp_reset_over_reset_password' => false, |
117 | | - 'totp_two_step_login_active' => false, |
118 | | - 'totp_two_step_login_redirect' => '/account/twofactor_verification/', |
| 122 | + 'totp_active' => false, |
| 123 | + 'totp_only_on_ip_change' => false, |
| 124 | + 'totp_reset_over_reset_password' => false, |
| 125 | + 'totp_two_step_login_active' => false, |
| 126 | + 'totp_two_step_login_redirect' => '/account/twofactor_verification/', |
119 | 127 |
|
120 | | - 'max_login_attempt' => 10, |
121 | | - 'max_login_attempt_time_period' => "5 minutes", |
122 | | - 'remove_successful_attempts' => true, |
| 128 | + 'max_login_attempt' => 10, |
| 129 | + 'max_login_attempt_time_period' => "5 minutes", |
| 130 | + 'remove_successful_attempts' => true, |
123 | 131 |
|
124 | | - 'login_with_name' => false, |
| 132 | + 'login_with_name' => false, |
125 | 133 |
|
126 | | - 'use_cookies' => true, |
| 134 | + 'use_cookies' => true, |
127 | 135 |
|
128 | | - 'email' => 'admin@admin.com', |
129 | | - 'name' => 'Emre Akay', |
| 136 | + 'email' => 'admin@admin.com', |
| 137 | + 'name' => 'Emre Akay', |
130 | 138 |
|
131 | | - 'verification' => false, |
132 | | - 'verification_link' => '/account/verification/', |
133 | | - 'reset_password_link' => '/account/reset_password/', |
| 139 | + 'verification' => false, |
| 140 | + 'verification_link' => '/account/verification/', |
| 141 | + 'reset_password_link' => '/account/reset_password/', |
134 | 142 |
|
135 | | - 'hash' => 'sha256', |
136 | | - 'use_password_hash' => false, |
137 | | - 'password_hash_algo' => PASSWORD_DEFAULT, |
138 | | - 'password_hash_options' => array(), |
| 143 | + 'hash' => 'sha256', |
| 144 | + 'use_password_hash' => false, |
| 145 | + 'password_hash_algo' => PASSWORD_DEFAULT, |
| 146 | + 'password_hash_options' => array(), |
139 | 147 |
|
140 | | - 'pm_encryption' => false |
| 148 | + 'pm_encryption' => false, |
| 149 | + 'pm_cleanup_max_age' => "6 months", |
141 | 150 | ); |
142 | 151 |
|
143 | 152 | $config['aauth'] = $config_aauth['default']; |
|
0 commit comments