Giter Site home page Giter Site logo

Error after updating about auth-keycloak HOT 12 CLOSED

jooooaah avatar jooooaah commented on June 30, 2024
Error after updating

from auth-keycloak.

Comments (12)

marc-farre avatar marc-farre commented on June 30, 2024

What is the version of your Keycloak server?

Can you check the logs in Administration -> Information -> Logging?

from auth-keycloak.

jooooaah avatar jooooaah commented on June 30, 2024

unfortunately, we can no longer track this exactly - it was a update on a live system. KC is 17.0.1 but we currently preparing update on 23.0.5

from auth-keycloak.

marc-farre avatar marc-farre commented on June 30, 2024

I see. The new module version was only tested on Keycloak 22 and 23.
Please let me know if it works after upgrading to Keycloak 23 and I will add this requirement in the module documentation.

FYI, this new version of the module uses Open ID connect protocol instead of Oauth 2.

And also it requires PHP 8.0 or later (see requirements here). You should check the version of your PHP in Administration -> Information -> Prerequisites

from auth-keycloak.

jooooaah avatar jooooaah commented on June 30, 2024

thanks - I will report here if the error occurs again after upgrading to version 23. We have already figured out the PHP version and fixed it :) good hint with OIDC!

from auth-keycloak.

Fabien-inexine avatar Fabien-inexine commented on June 30, 2024

I have the same problem after updating from 1.3 to 1.4.1. My version of keycloak is 23.0.3, php 8.1 and humhub 1.15.3.

from auth-keycloak.

marc-farre avatar marc-farre commented on June 30, 2024

@Fabien-inexine thanks for reporting.

Have you upgraded from GitHub (by cloning the repository) or from HumHub marketplace? If from GitHub, you need to update composer.

There must be a setting (on Keycloak or HumHub) that needs to be changed to make it work with this new version, but I cannot tell which one. I'm currently using it with success on Keycloak 23.0.3, HumHub 1.15.3 and PHP 8.2, which is similar to you.

I use this setting on HumHub:
image

And on Keycloak:
image

Check also the instructions in the module settings:
image

If you find the solution, please share it, so I can update the documentation. Thanks!

from auth-keycloak.

Fabien-inexine avatar Fabien-inexine commented on June 30, 2024

I use the market place version. I switched to php 8.2 but I have the same problem. I’m on ubuntu 22.

The keycloak configuration is ok. The module configuration also normally.

from auth-keycloak.

marc-farre avatar marc-farre commented on June 30, 2024

@Fabien-inexine Can you have a look to this:

image

image

image

And also if you have error messages in the Console tab, or in Humhub logging?

from auth-keycloak.

Fabien-inexine avatar Fabien-inexine commented on June 30, 2024

I don’t have a call on authenticate/session_code
Here is the debug when I click on "connect with keycload"

Capture d’écran du 2024-02-16 11-23-17

I have no errors in the console and humhub loggins

from auth-keycloak.

marc-farre avatar marc-farre commented on June 30, 2024

Sorry, but I don't know what's happening.
If you need paid support, contact me on https://cuzy.app/contact

I will need:

  • an admin access to your Keycloak
  • or a testing client (I'll send you the settings to add)
  • or the settings of your current client (you'll need to temporarily add the URL of my HumHub instance in "Valid redirect URIs")

And a screenshot of your module settings on HumHub.

This will allow me to test on my local HumHub instance and fix the issue.

from auth-keycloak.

Fabien-inexine avatar Fabien-inexine commented on June 30, 2024

@marc-farre , i just found it. Missing the php-bcmath module. After installing it, it works.

from auth-keycloak.

marc-farre avatar marc-farre commented on June 30, 2024

@Fabien-inexine thanks very much for your researches and your feedback.

I didn't know it was a requirement, as it's marked as highly recommended in the JWT Key Management Component library:
https://web-token.spomky-labs.com/introduction/pre-requisite

I've updated the module requirements in the last commit:
7a48f15#diff-0b5ca119d2be595aa307d34512d9679e49186307ef94201e4b3dfa079aa89938R26

And I've released a new version of the module: https://github.com/cuzy-app/humhub-modules-auth-keycloak/releases/tag/1.4.2
It should be soon available on the marketplace (it only adds these new requirements).

from auth-keycloak.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.