Skip to content

Avoid conflict between Auth methods#116

Open
tacerus wants to merge 1 commit intodominik-th:5.x-devfrom
tacerus:auth
Open

Avoid conflict between Auth methods#116
tacerus wants to merge 1 commit intodominik-th:5.x-devfrom
tacerus:auth

Conversation

@tacerus
Copy link
Copy Markdown

@tacerus tacerus commented Jun 21, 2024

Resolve:

ERROR Piwik\FrontController Uncaught exception: Error:
Call to undefined method Piwik\Plugins\Login\Auth::setForceLogin()
in /srv/www/matomo/plugins/LoginOIDC/Controller.php:431

It seems it loaded the methods from Piwik\Auth instead of Piwik\Plugins\LoginOIDC\OIDCAuth - which worked for getLogin() (which exists in both files), but failed at setForceLogin() (which only exists in the latter).

Resolve:

```
ERROR Piwik\FrontController Uncaught exception: Error:
Call to undefined method Piwik\Plugins\Login\Auth::setForceLogin()
in /srv/www/matomo/plugins/LoginOIDC/Controller.php:431
```

It seems it loaded the methods from Piwik\Auth instead of
Piwik\Plugins\LoginOIDC\OIDCAuth - which worked for getLogin()
(which exists in both files), but failed at setForceLogin()
(which only exists in the latter).

Signed-off-by: Georg Pfuetzenreuter <[email protected]>
@mikkeschiren
Copy link
Copy Markdown

A fix for this has been added to the fork at: https://github.com/Digitalist-Open-Cloud/Matomo-Plugin-RebelOIDC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants