Skip to content

Commit

Permalink
Fix password protected files for OAuth2
Browse files Browse the repository at this point in the history
The previous Saml2 fix works for OAuth2.
  • Loading branch information
tom7c1 authored and torinfo committed Oct 5, 2021
1 parent d28c00d commit 4ecea35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.php
Expand Up @@ -297,7 +297,7 @@ function check_security_type($security_setting)
unset($errors);
} else
{
if ($xerte_toolkits_site->authentication_method === 'Saml2')
if (in_array($xerte_toolkits_site->authentication_method, ['Saml2', 'OAuth2'], true))
{
if (isset($_SESSION['toolkits_logon_username']))
{
Expand Down

0 comments on commit 4ecea35

Please sign in to comment.