8000 Avoid conflict between Auth methods by tacerus · Pull Request #116 · dominik-th/matomo-plugin-LoginOIDC · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 11, 2026. It is now read-only.

Avoid conflict between Auth methods - #116

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

tacerus wants to merge 1 commit into
dominik-th:5.x-devfrom
tacerus:auth

Conversation

@tacerus
@tacerus tacerus commented Jun 21, 2024
Copy link
Copy Markdown

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 <mail@georg-pfuetzenreuter.net>
@mikkeschiren
94FC mikkeschiren commented Jan 15, 2025
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0