dominik-th / matomo-plugin-LoginOIDC

external authentication services for matomo
https://plugins.matomo.org/LoginOIDC/
GNU General Public License v3.0
40 stars 29 forks source link

Uncaught Exception (Latest Keycloak) #99

Closed Entrepreneur-AJ closed 11 months ago

Entrepreneur-AJ commented 11 months ago

Seem to be having issues on a fresh install.

Visually I am getting the unexpected response error when logging in logs are showing:

ERROR Piwik\ExceptionHandler[2023-07-16 11:31:41 UTC] [4020c] Uncaught exception: /home/matomo/public_html/plugins/LoginOIDC/Controller.php(234): Unexpected response from OAuth service. [Query: ?module=LoginOIDC&action=callback&provider=oidc&state=a92ae90bc58cf82554d542d3ab95f7d4&session_state=b1dd1305-eeb5-4cc3-b7ba-69112f76634b&code=873701de-9b15-4c01-935a-ee3e9e059b66.b1dd1305-eeb5-4cc3-b7ba-69112f76634b.e62afbb8-8309-49e9-bbe6-d6a7a1ba6dc0, CLI mode: 0]

Setup: Fedora Server 38 Litespeed Enterprise Web Server PHP 8.2.8 Matomo 4.15.0 Keycloak 21.1.2 LoginOIDC 4.1.2

Keycloak does not show any errors!

setup same way as your faq's state.

Dropped back to oldest non EOL version of PHP (8.0) to check if it was a deprecation issue but still same issue.

Matomo Diagnostic System Check:

Click to view System Check ### Mandatory checks #### PHP version >= 7.2.5: ✔ 8.2.8 #### PDO extension: ✔ #### PDO\MYSQL extension: ✔ #### MYSQLI extension: ✔ #### Other required extensions: ✔ zlib ✔ json ✔ filter ✔ hash ✔ session #### Required functions: ✔ debug_backtrace ✔ eval ✔ hash ✔ gzcompress ✔ gzuncompress ✔ pack #### Required PHP configuration (php.ini): ✔ session.auto_start = 0 ✔ max_execution_time = 0 OR = -1 OR >= 30 #### Directories with write access: ✔ $DOC_ROOT/tmp ✔ $DOC_ROOT/tmp/assets ✔ $DOC_ROOT/tmp/cache ✔ $DOC_ROOT/tmp/climulti ✔ $DOC_ROOT/tmp/latest ✔ $DOC_ROOT/tmp/logs ✔ $DOC_ROOT/tmp/sessions ✔ $DOC_ROOT/tmp/tcpdf ✔ $DOC_ROOT/tmp/templates_c #### Directories with write access for Tag Manager: ✔ $DOC_ROOT/js ### Optional checks #### Required Private Directories: ✔ All private directories are inaccessible from the internet. #### Recommended Private Directories: ✔ All private directories are inaccessible from the internet. #### File integrity: ✔ #### 64-bit PHP Binary: ✔ #### Tracker status: ✔ #### Memory limit: ✔ 128M #### Time zone: ✔ #### Open URL: ✔ curl #### PageSpeed is turned off: ✔ #### GD > 2.x + FreeType (graphics): ✔ #### Other extensions: ✔ json ✔ libxml ✔ dom ✔ SimpleXML ✔ openssl #### Other functions: ✔ shell_exec ✔ set_time_limit ✔ mail ✔ parse_ini_file ✔ glob ✔ gzopen ✔ md5_file #### Filesystem: ✔ #### Set up Cron - Managing processes via CLI: ✔ Ok #### Last Successful Archiving Completion: ✔ The archiving process completed successfully 00:26:32 ago. #### Database abilities: ✔ UTF8mb4 charset ✔ LOAD DATA INFILE ✔ CREATE TEMPORARY TABLES ✔ Changing transaction isolation level #### Max Packet Size: ✔ #### Forced SSL Connection: ✔ #### Geolocation: ⚠ Warning: Geolocation works, but you are not using one of the recommended providers. If you have to import log files or do something else that requires setting IP addresses, use the PHP GeoIP 2 implementation and install maxminddb extension. #### Update over HTTPS: ✔ #### Writable JavaScript Tracker ("/matomo.js"): ✔ ### Informational results #### Matomo Version: 4.15.0 #### Matomo Update History: 4.15.0, #### Matomo Install Version: 4.15.0 #### Latest Available Version: 4.15.0 #### Is Git Deployment: 0 #### PHP_OS: Linux #### PHP_BINARY: /opt/remi/php82/root/usr/bin/lsphp #### PHP SAPI: litespeed #### Timezone Version: 2023.3 #### PHP Timezone: UTC #### PHP Time: 1689510408 #### PHP Datetime: 2023-07-16 12:26:48 #### PHP INI max_execution_time: 30 #### PHP INI post_max_size: 8M #### PHP INI max_input_vars: 1000 #### PHP INI zlib.output_compression: #### Curl Version: 8.0.1, OpenSSL/3.0.9 #### Suhosin Installed: 0 #### DB Prefix: matomo_ #### DB Charset: utf8mb4 #### DB Adapter: PDO\MYSQL #### MySQL Version: 10.5.20-MariaDB #### Num Tables: 46 #### Browser Segment Archiving Enabled: 1 #### Development Mode Enabled: 0 #### Internet Enabled: 1 #### Multi Server Environment: 0 #### Auto Update Enabled: 1 #### Custom User Path: 0 #### Custom Include Path: 0 #### Release Channel: latest_stable #### Plugins Activated: API, Actions, Annotations, Bandwidth 4.0.5, BotTracker 2.08, BraveDetector 0.1.2, BulkTracking, Contents, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, CustomDimensions, CustomJsTracker, Dashboard, DeviceDetectorCache 4.3.1, DeviceFeatureWebGL 4.0.1, DeviceNetworkInformation 4.0.1, DevicePixelRatio 2.0.1, DevicePlugins, DevicesDetection, Diagnostics, DisableTracking 1.2.0, DynamicDeviceDetectorCache 1.0.4, Ecommerce, Events, GeoIp2, Goals, Heartbeat, ImageGraph, Insights, Installation, Intl, IntranetMeasurable, JsTrackerForceAsync 4.0.0, LanguagesManager, Live, LogViewer 4.1.1, Login, MarketingCampaignsReporting 4.1.3, Marketplace, MobileMessaging, Modern 1.1.5, Monolog, Morpheus, MultiSites, Overlay, PagePerformance, PasswordVerifier 0.2.3, PrivacyManager, ProtectTrackID 2.7.0, Proxy, QueuedTracking 4.0.7, QuickExcludeVisitorIP 0.1.1, Referrers, ReferrersManager 4.0.4, Resolution, SEO, ScheduledReports, SegmentEditor, SitesManager, TagManager, TrackingSpamPrevention 4.1.7, Transitions, TwilioSMS 0.2.3, TwoFactorAuth, UserCountry, UserCountryMap, UserId, UserLanguage, UsersManager, VipDetector 1.0.0, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable, Widgetize #### Plugins Deactivated: DBStats, Feedback, GoogleTheme 1.2.5, HidePasswordReset 4.3.3, LoginOIDC 4.1.2, MobileAppMeasurable, ProfessionalServices, RssWidget, Tour #### Plugins Invalid: #### Server Info: LiteSpeed #### Had visits in last 1 day: 0 #### Had visits in last 3 days: 0 #### Had visits in last 5 days: 0 #### Archive Time Last Started: 2023-07-16 12:00:16 #### Archive Time Last Finished: 2023-07-16 12:00:16 #### User Agent: Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0 #### Browser Language: en-us,en #### Total Invalidation Count: 0 #### In Progress Invalidation Count: 0 #### Scheduled Invalidation Count: 0 #### Earliest invalidation ts_started: #### Latest invalidation ts_started: #### Earliest invalidation ts_invalidated: #### Latest invalidation ts_invalidated: #### Number of segment invalidations: 0 #### Number of plugin invalidations: 0 #### List of plugins being invalidated: #### Anonymize Referrer: #### Do Not Track enabled: 1
Entrepreneur-AJ commented 11 months ago

Seems to no longer be an issue