Closed buglessdr closed 1 year ago
The error you have is:
The file or directory to be published does not exist: /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/authclient/assets in /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/web/AssetManager.php:461
Could you check you have this directory on your server: /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/authclient/assets
?
I do not
Not sure if this is helpful - but these are the commands I used to start the containers.
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:18.0.2 start-dev
docker run -d --name humhub_db -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=humhub mariadb:10.2
docker run -d --name humhub -p 80:80 --link humhub_db:db mriedmann/humhub:stable
Did an upgrade to humhub 1.11.4 and keycloak 18.0.2 and was able to make a little more progress however, I have encountered a new error:
Next yii\httpclient\Exception: fopen(http://localhost:8080/realms/master/protocol/openid-connect/token): failed to open stream: Address not available in /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2-httpclient/src/StreamTransport.php:68
Stack trace:
2022-07-26 23:26:29 [172.17.0.1][-][7tjiruh8rus0fngdc3pve25gjh][info][application] $_GET = [
'authclient' => 'Keycloak'
'state' => '75400b4152e5c01e72e0b161ac86dc463289052574354928dd6cae271a5d2a35'
'session_state' => '546e2ee9-c55b-4405-b128-6a0d47517d2d'
'code' => '94742197-a024-4deb-9780-14fdf7c16b7d.546e2ee9-c55b-4405-b128-6a0d47517d2d.d4b2bb8d-f4c6-42a5-b559-3e546c30bb1f'
]
I was able to validate with postman that I can hit the URL and successfully return a token with it, (I did have to make a change to scopes to be able to do it)
Great.
I cannot tell, the error is that http://localhost:8080/realms/master/protocol/openid-connect/token
is not reachable.
This URL is your Keycloak, but I really don't know why it cannot be read.
Perhaps Keycloak URL should to be on HTTPS?
You could also try with another app (Wordpress or other) if your Keycloak is working correctly.
@funkycram see https://github.com/humhub-contrib/auth-google/issues/5 for similar issue.
Thanks @ArchBlood but I think the problem is the URL.
@buglessdr Could you go to the Keycloak administration -> Realm settings -> click on "OpenID Endpoint Configuration" and check the token_endpoint
URL?
If it starts with http://localhost:8080/auth/master/...
then in the Keycloak settings (in Humhub), in the field Base URL
you should have http://localhost:8080/auth
.
That was it! Thanks!
Hello,
I have installed KeyClock 17.0.1 and Hum Hub 1.9 and received the following error after checking "Enable this Auth client" directions seem pretty straightforward. I used docker to setup everything. When I turn on the module I get the following error in firefox/chrome: too many redirects
From the error logs I get the following: