Rev 1005 | Rev 1149 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1005 | Rev 1050 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | * See the License for the specific language governing permissions and |
16 | * See the License for the specific language governing permissions and |
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
- | 20 | use ViaThinkSoft\OIDplus\OIDplus; |
|
- | 21 | use ViaThinkSoft\OIDplus\OIDplusGui; |
|
- | 22 | use ViaThinkSoft\OIDplus\OIDplusException; |
|
- | 23 | use ViaThinkSoft\OIDplus\OIDplusRA; |
|
- | 24 | ||
20 | # More information about the OAuth2 implementation: |
25 | # More information about the OAuth2 implementation: |
21 | # - https://developers.google.com/identity/protocols/oauth2/openid-connect |
26 | # - https://developers.google.com/identity/protocols/oauth2/openid-connect |
22 | 27 | ||
23 | require_once __DIR__ . '/../../../../includes/oidplus.inc.php'; |
28 | require_once __DIR__ . '/../../../../includes/oidplus.inc.php'; |
24 | 29 | ||
25 | OIDplus::init(true); |
30 | OIDplus::init(true); |
26 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
31 | set_exception_handler(array(OIDplusGui::class, 'html_exception_handler')); |
27 | 32 | ||
28 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPagePublicLoginGoogle', false)) { |
33 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPagePublicLoginGoogle', false)) { |
29 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
34 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
30 | } |
35 | } |
31 | 36 | ||
32 | if (!OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) { |
37 | if (!OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) { |
33 | throw new OIDplusException(_L('Google OAuth authentication is disabled on this system.')); |
38 | throw new OIDplusException(_L('Google OAuth authentication is disabled on this system.')); |