we want to create data server and as login we using openID where provider is KeyCloak. We seted keycloak to another services on the server, but we have problem with owncloud.
We using a auto-provisioning, where after first login (registration) is create user in owncloud database, but it not login and stop with internal server error.
Hi,
we want to create data server and as login we using openID where provider is KeyCloak. We seted keycloak to another services on the server, but we have problem with owncloud. We using a auto-provisioning, where after first login (registration) is create user in owncloud database, but it not login and stop with internal server error.
Here is a error from log file:
{"reqId":"KH54CwjtQ5jXHE0qL4iE","level":3,"time":"2021-10-21T19:20:14+00:00","remoteAddr":"10.88.2.13","user":"--","app":"index","method":"GET","url":"\/share\/index.php\/apps\/openidconnect\/redirect?state=ef18d8500b931cbf34d2d33ac271cfe7&session_state=f81c52c1-4251-42eb-b9d5-edb149e3b761&code=98bf4eae-f31d-4586-9d36-1bf9406ce2ae.f81c52c1-4251-42eb-b9d5-edb149e3b761.78613851-2681-4b3d-b0ef-a01512db7553","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to protected method OC\\\\User\\\\Session::loginUser() from context 'OCA\\\\OpenIdConnect\\\\Controller\\\\LoginFlowController'\",\"Code\":0,\"Trace\":\"#0 [internal function]: OCA\\\\OpenIdConnect\\\\Controller\\\\LoginFlowController->login(*** sensitive parameters replaced ***)\\n#1 \\\/var\\\/www\\\/html\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(159): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/html\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\OpenIdConnect\\\\Controller\\\\LoginFlowController), 'login')\\n#3 \\\/var\\\/www\\\/html\\\/lib\\\/private\\\/AppFramework\\\/App.php(103): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\OpenIdConnect\\\\Controller\\\\LoginFlowController), 'login')\\n#4 \\\/var\\\/www\\\/html\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('OCA\\\\\\\\OpenIdConne...', 'login', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#5 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#6 \\\/var\\\/www\\\/html\\\/lib\\\/private\\\/Route\\\/Router.php(342): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#7 \\\/var\\\/www\\\/html\\\/lib\\\/base.php(912): OC\\\\Route\\\\Router->match('\\\/apps\\\/openidcon...')\\n#8 \\\/var\\\/www\\\/html\\\/index.php(55): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/apps\\\/openidconnect\\\/lib\\\/Controller\\\/LoginFlowController.php\",\"Line\":146}"}
If I create user manualy from administrator account it work normal.
We using: Ubuntu 20.04 Owncloud 10.0.8 OpenID Connect 2.0.0 PHP 7.2 Apache2
Thanks for any help.