|
13 | 13 | use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Service\ModuleSettingsService as TwoFactorAuthModuleSettings; |
14 | 14 | use OxidEsales\SecurityModule\PasswordPolicy\Service\ModuleSettingsService as PasswordPolicyModuleSettings; |
15 | 15 | use OxidEsales\SecurityModule\Captcha\Service\ModuleSettingsService as CaptchaModuleSettings; |
| 16 | +use OxidEsales\SecurityModule\Authentication\OAuth2\Service\ModuleSettingsService as OAuthModuleSettings; |
16 | 17 | use OxidEsales\SecurityModule\Core\Module; |
17 | 18 |
|
18 | 19 | $sMetadataVersion = '2.1'; |
|
42 | 43 | 'controllers' => [ |
43 | 44 | 'captcha' => \OxidEsales\SecurityModule\Captcha\Controller\CaptchaController::class, |
44 | 45 | 'password' => \OxidEsales\SecurityModule\PasswordPolicy\Controller\PasswordAjaxController::class, |
45 | | - |
46 | 46 | 'oauth' => \OxidEsales\SecurityModule\Authentication\OAuth2\Controller\OAuthController::class |
47 | 47 | ], |
48 | 48 | 'templates' => [ |
|
118 | 118 | //OAuth2 settings |
119 | 119 | [ |
120 | 120 | 'group' => 'oauth', |
121 | | - 'name' => ModuleSettingsService::FACEBOOK_ACTIVE, |
| 121 | + 'name' => OAuthModuleSettings::FACEBOOK_LOGIN_ENABLED, |
122 | 122 | 'type' => 'bool', |
123 | 123 | 'value' => false |
124 | 124 | ], |
125 | 125 | [ |
126 | 126 | 'group' => 'oauth', |
127 | | - 'name' => ModuleSettingsService::FACEBOOK_CLIENT_ID, |
| 127 | + 'name' => OAuthModuleSettings::FACEBOOK_CLIENT_ID, |
| 128 | + 'type' => 'str', |
| 129 | + 'value' => '' |
| 130 | + ], |
| 131 | + [ |
| 132 | + 'group' => 'oauth', |
| 133 | + 'name' => OAuthModuleSettings::FACEBOOK_CLIENT_SECRET, |
| 134 | + 'type' => 'str', |
| 135 | + 'value' => '' |
| 136 | + ], |
| 137 | + [ |
| 138 | + 'group' => 'oauth', |
| 139 | + 'name' => OAuthModuleSettings::FACEBOOK_REDIRECT_URL, |
| 140 | + 'type' => 'str', |
| 141 | + 'value' => '' |
| 142 | + ], |
| 143 | + [ |
| 144 | + 'group' => 'oauth', |
| 145 | + 'name' => OAuthModuleSettings::GOOGLE_LOGIN_ENABLED, |
| 146 | + 'type' => 'bool', |
| 147 | + 'value' => true |
| 148 | + ], |
| 149 | + [ |
| 150 | + 'group' => 'oauth', |
| 151 | + 'name' => OAuthModuleSettings::GOOGLE_CLIENT_ID, |
128 | 152 | 'type' => 'str', |
129 | 153 | 'value' => '' |
130 | 154 | ], |
131 | 155 | [ |
132 | 156 | 'group' => 'oauth', |
133 | | - 'name' => ModuleSettingsService::FACEBOOK_CLIENT_SECRET, |
| 157 | + 'name' => OAuthModuleSettings::GOOGLE_CLIENT_SECRET, |
134 | 158 | 'type' => 'str', |
135 | 159 | 'value' => '' |
136 | 160 | ], |
137 | 161 | [ |
138 | 162 | 'group' => 'oauth', |
139 | | - 'name' => ModuleSettingsService::FACEBOOK_REDIRECT_URL, |
| 163 | + 'name' => OAuthModuleSettings::GOOGLE_REDIRECT_URL, |
140 | 164 | 'type' => 'str', |
141 | 165 | 'value' => '' |
142 | 166 | ], |
|
0 commit comments