Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth using Keycloak problem #1

Open
DimitryVo opened this issue Feb 19, 2025 · 1 comment
Open

Auth using Keycloak problem #1

DimitryVo opened this issue Feb 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@DimitryVo
Copy link

DimitryVo commented Feb 19, 2025

A problem KeyCloak auth.

Hello, if I set option "JICOFO_ENABLE_AUTH=false", jitsi dont redirect auth to Keycloak and login me as moderator without auth, but if I comment the option, jitsi redirect me to keycloak and after success login I see error "Authentification failed: Sorry, you're not allowed join this call".

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set jitsi-keycloak-adapter-v2 in docker by instruction
  2. config Nginx by instruction

Expected behavior

A clear and concise description of what you expected to happen.

I need login to jitsi room by KeyCloak

Environment:

  • OS: Debian 10, Docker
  • Browser: [chrome, firefox]
  • Version: [KeyCloak 24]

Additional context

@DimitryVo DimitryVo added the bug Something isn't working label Feb 19, 2025
@emrahcom
Copy link
Collaborator

Hi @DimitryVo,

The needed PR was merged 3 weeks ago. So, try with the latest Docker images.

By the way it works for me with the latest Docker images. My local IP is 172.18.18.1 in my tests.

  • I started the keycloak adapter with the following command. I set ALLOW_UNSECURE_CERT because I have a self-signed certificate for my local Keycloak. -e ... part is configured depending on my environment.
docker run -d --name adapter -p "9000:9000/TCP" -e ... -e ALLOW_UNSECURE_CERT=true ghcr.io/nordeck/jitsi-keycloak-adapter-v2
  • I added the additional Nginx config into ~/.jitsi-meet-cfg/web/nginx-custom/oidc.conf
location ~ /oidc/ {
    proxy_pass http://172.18.18.1:9000;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $http_host;
}
  • This is my .env file (only added params) for Jitsi docker-compose:
JITSI_IMAGE_VERSION=stable
PUBLIC_URL=https://172.18.18.1:8443    
JVB_ADVERTISE_IPS=172.18.18.1
 
ENABLE_AUTH=true        
JICOFO_ENABLE_AUTH=false
AUTH_TYPE=jwt           
JWT_APP_ID=myappid      
JWT_APP_SECRET=myappsecret
 
TOKEN_AUTH_URL=https://172.18.18.1:8443/oidc/auth?state={state}
ENABLE_GUESTS=true
XMPP_MODULES=persistent_lobby
XMPP_MUC_MODULES=muc_wait_for_host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants