H2-invent / jitsi-admin

Organize and fully controll your jitsi meet meetings. Make your meeting secure and be sure that only you and your fellows can join your meeting.
https://meetling.de
GNU Affero General Public License v3.0
130 stars 47 forks source link

invalid parameter: invalid_uri #507

Open gpahlevanzadeh opened 6 months ago

gpahlevanzadeh commented 6 months ago

I setup keycloak and run it and open it's interface and created client id, username , admin username , token and so on. It was useful. I configure my .env.prod.local such as :

MERCURE_URL="http://127.0.0.1:3000/.well-known/mercure"
MERCURE_PUBLIC_URL="http://admin.meet.icro.ir"
MERCURE_JWT_SECRET="ebd66a186a3936a9693d6355979ded75"
WEBSOCKET_SECRET="ebd66a186a3936a9693d6355979ded75"
VICH_BASE="http://admin.meet.icro.ir"
laF_baseUrl="http://admin.meet.icro.ir"
### End: App\Command\Installer\BasicConfig ###

### Start: App\Command\Installer\DbConfig ###
DATABASE_URL="mysql://jitsiadmin:jitsiadmin@127.0.0.1:3306/jitsi-admin?serverVersion=5.7"
### End: App\Command\Installer\DbConfig ###

### Start: App\Command\Installer\KeycloakConfig ###
OAUTH_KEYCLOAK_CLIENT_ID="jitsi"
OAUTH_KEYCLOAK_CLIENT_SECRET="YIWH1WJEB0Adin5glsJ0zZOPtsRXfZhc"
OAUTH_KEYCLOAK_SERVER="http://172.16.60.36:8080"
OAUTH_KEYCLOAK_REALM="master"

And when I opened admin.meet.icro.ir it redirect to the following URL and generated invalid parameters: redirect_uri

http://172.16.60.36:8080/realms/master/protocol/openid-connect/auth?redirect_uri=http%3A%2F%2Fadmin.meet.icro.ir%2Flogin%2Fkeycloak_login%2Fcheck&scope=email%20openid%20profile&state=4ab860eb2c02a5db93528f3564f18684&response_type=code&approval_prompt=auto&client_id=jitsi

By the way, I installed jitsi-admin under admin.meet.icro.ir How can I solve it?

holema commented 6 months ago

You run your jitsi admin under http or https?

gpahlevanzadeh commented 6 months ago

I use it under http.(80)

holema commented 6 months ago

Watch in the uri at keyclock. There ist a query parameter redirect_uri. Please check this parameter. Ist there a https?

gpahlevanzadeh commented 6 months ago

No, redirect_uri is : http%3A2F%2Fadmin.meet.icr.ir

gpahlevanzadeh commented 6 months ago

Yes, It's redirected to https. but I don't where I do change it to http

holema commented 6 months ago

which commit do you use? This chould be fixed in the latest version

holema commented 6 months ago

Is the base URL set correctly in the .env.prod.local

gpahlevanzadeh commented 6 months ago

I changed to https and still I get invalid_uri

gpahlevanzadeh commented 6 months ago

Is the base URL set correctly in the .env.prod.local

Do you mean VICH_BASE ?

gpahlevanzadeh commented 6 months ago

I think my URLs in .env.prod.local has problem, my domain that jitsi-admin is running under it, it's admin.meet.icro.ir and it's run under http. in same server I have keycloak on 8080. Please giude me to configure .env.prod.local . Unfortunately I didn't find any documentation about configure .env.prod.local

gpahlevanzadeh commented 6 months ago

by the way, my jitsi server is http://meet.icro.ir

holema commented 6 months ago

you have to set you laF_baseUrl with your corrct url. http://....... or even better use the docker installation then everything will work out of the box

gpahlevanzadeh commented 3 months ago

After 3 month, I decided to configure jitsi-admin, According to above, I have meet.icro.ir , it's jisti server and admin.meet.icro.ir and it's jitsi-admin, And my .en.prod.local is:

MERCURE_URL="http://127.0.0.1:3000/.well-known/mercure"
MERCURE_PUBLIC_URL="http://admin.meet.icro.ir"
MERCURE_JWT_SECRET="ebd66a186a3936a9693d6355979ded75"
WEBSOCKET_SECRET="ebd66a186a3936a9693d6355979ded75"
VICH_BASE="http://admin.meet.icro.ir"
laF_baseUrl="http://meet.icro.ir"
### End: App\Command\Installer\BasicConfig ###

### Start: App\Command\Installer\DbConfig ###
DATABASE_URL="mysql://jitsiadmin:jitsiadmin@127.0.0.1:3306/jitsi-admin?serverVersion=5.7"
### End: App\Command\Installer\DbConfig ###

### Start: App\Command\Installer\KeycloakConfig ###
OAUTH_KEYCLOAK_CLIENT_ID="jitsi"
OAUTH_KEYCLOAK_CLIENT_SECRET="YIWH1WJEB0Adin5glsJ0zZOPtsRXfZhc"
OAUTH_KEYCLOAK_SERVER="http://172.16.60.36:8080"
OAUTH_KEYCLOAK_REALM="master"

You made me happy if help me.