|
9 | 9 | * Metadata version |
10 | 10 | */ |
11 | 11 |
|
| 12 | +use OxidEsales\SecurityModule\Authentication\OAuth2\Service\ModuleSettingsService; |
| 13 | +use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Service\ModuleSettingsService as TwoFactorAuthModuleSettings; |
12 | 14 | use OxidEsales\SecurityModule\PasswordPolicy\Service\ModuleSettingsService as PasswordPolicyModuleSettings; |
13 | 15 | use OxidEsales\SecurityModule\Captcha\Service\ModuleSettingsService as CaptchaModuleSettings; |
| 16 | +use OxidEsales\SecurityModule\Authentication\OAuth2\Service\ModuleSettingsService as OAuthModuleSettings; |
14 | 17 | use OxidEsales\SecurityModule\Core\Module; |
15 | 18 |
|
16 | 19 | $sMetadataVersion = '2.1'; |
|
39 | 42 | ], |
40 | 43 | 'controllers' => [ |
41 | 44 | 'captcha' => \OxidEsales\SecurityModule\Captcha\Controller\CaptchaController::class, |
42 | | - 'password' => \OxidEsales\SecurityModule\PasswordPolicy\Controller\PasswordAjaxController::class |
| 45 | + 'password' => \OxidEsales\SecurityModule\PasswordPolicy\Controller\PasswordAjaxController::class, |
| 46 | + 'oauth' => \OxidEsales\SecurityModule\Authentication\OAuth2\Controller\OAuthController::class, |
| 47 | + 'twofactorauth' => \OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Controller\TwoFactorAuthController::class, |
43 | 48 | ], |
44 | 49 | 'templates' => [ |
45 | 50 | ], |
|
109 | 114 | 'type' => 'select', |
110 | 115 | 'constraints' => '5min|15min|30min', |
111 | 116 | 'value' => '15min' |
112 | | - ] |
| 117 | + ], |
| 118 | + |
| 119 | + //OAuth2 settings |
| 120 | + [ |
| 121 | + 'group' => 'oauth', |
| 122 | + 'name' => OAuthModuleSettings::FACEBOOK_LOGIN_ENABLED, |
| 123 | + 'type' => 'bool', |
| 124 | + 'value' => false |
| 125 | + ], |
| 126 | + [ |
| 127 | + 'group' => 'oauth', |
| 128 | + 'name' => OAuthModuleSettings::FACEBOOK_CLIENT_ID, |
| 129 | + 'type' => 'str', |
| 130 | + 'value' => '' |
| 131 | + ], |
| 132 | + [ |
| 133 | + 'group' => 'oauth', |
| 134 | + 'name' => OAuthModuleSettings::FACEBOOK_CLIENT_SECRET, |
| 135 | + 'type' => 'str', |
| 136 | + 'value' => '' |
| 137 | + ], |
| 138 | + [ |
| 139 | + 'group' => 'oauth', |
| 140 | + 'name' => OAuthModuleSettings::FACEBOOK_REDIRECT_URL, |
| 141 | + 'type' => 'str', |
| 142 | + 'value' => '' |
| 143 | + ], |
| 144 | + [ |
| 145 | + 'group' => 'oauth', |
| 146 | + 'name' => OAuthModuleSettings::GOOGLE_LOGIN_ENABLED, |
| 147 | + 'type' => 'bool', |
| 148 | + 'value' => true |
| 149 | + ], |
| 150 | + [ |
| 151 | + 'group' => 'oauth', |
| 152 | + 'name' => OAuthModuleSettings::GOOGLE_CLIENT_ID, |
| 153 | + 'type' => 'str', |
| 154 | + 'value' => '' |
| 155 | + ], |
| 156 | + [ |
| 157 | + 'group' => 'oauth', |
| 158 | + 'name' => OAuthModuleSettings::GOOGLE_CLIENT_SECRET, |
| 159 | + 'type' => 'str', |
| 160 | + 'value' => '' |
| 161 | + ], |
| 162 | + [ |
| 163 | + 'group' => 'oauth', |
| 164 | + 'name' => OAuthModuleSettings::GOOGLE_REDIRECT_URL, |
| 165 | + 'type' => 'str', |
| 166 | + 'value' => '' |
| 167 | + ], |
| 168 | + |
| 169 | + //TwoFactorAuth settings |
| 170 | + [ |
| 171 | + 'group' => 'two_factor_auth', |
| 172 | + 'name' => TwoFactorAuthModuleSettings::ACTIVE, |
| 173 | + 'type' => 'bool', |
| 174 | + 'value' => false |
| 175 | + ], |
| 176 | + [ |
| 177 | + 'group' => 'two_factor_auth', |
| 178 | + 'name' => TwoFactorAuthModuleSettings::TWO_FACTOR_TYPE, |
| 179 | + 'type' => 'select', |
| 180 | + 'constraints' => 'otp|totp', |
| 181 | + 'value' => 'otp' |
| 182 | + ], |
113 | 183 | ], |
114 | 184 | ]; |
0 commit comments