OIDC server authentification issue.
I am trying to get the OIDC authorization flow working according to a previously shared (working?) configuration (see below) on the HubZilla support forum. However after redirection to the Hubzilla page and successful login I get stuck on a white page with the following warning:
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/hubzilla/vendor/bshaffer/oauth2-server-php/src/OAuth2/Response.php on line 369
I am running the latest stable Master from git (3.8.9 - 1225) and try to use this with a Oauth2 configured with an admin account and login flow with a non-admin account.
For reference, my config:
- Nextcloud (v15.0.4): install "social login 1.13.0" app
Add a "Custom OpenID Connect" entry
I configured
"internal name" => "Hubzilla"
"Title" => "Hubzilla OpenID Connect login" [ this is what appears in the button on the login page ]
"Authorize URL" => "https://MY_HUB/authorize"
"Token URL" => "https://MY_HUB/token"
"User info" => "https://MY_HUB/userinfo"
"Client Id" => "nextcloud" [ actually just an identifier that you will configure in Hubzilla OAuth2 Apps manager ]
"Client Secret" => [the consumer secret generated in Hubzilla for the "nextcloud" OAuth2 App ]
"Scope" => "openid name email picture"
- Hubzilla:
- Install OAuth2 Apps manager
- Add an application
"Name" => the "Client Id" configured above in Nextcloud
"Consumer secret" => a secret is generated by Hubzilla
"Redirect" => (empty)
"Grant Types" => "authorization_code" (empty results in error?)
"Authorization scope" => (empty)
Thanks for the help