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

invalid parameter: invalid_uri #507

Open
gpahlevanzadeh opened this issue Jan 10, 2024 · 13 comments
Open

invalid parameter: invalid_uri #507

gpahlevanzadeh opened this issue Jan 10, 2024 · 13 comments

Comments

@gpahlevanzadeh
Copy link

gpahlevanzadeh commented Jan 10, 2024

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
Copy link
Contributor

holema commented Jan 11, 2024

You run your jitsi admin under http or https?

@gpahlevanzadeh
Copy link
Author

I use it under http.(80)

@holema
Copy link
Contributor

holema commented Jan 13, 2024

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

@gpahlevanzadeh
Copy link
Author

gpahlevanzadeh commented Jan 13, 2024

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

@gpahlevanzadeh
Copy link
Author

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

@holema
Copy link
Contributor

holema commented Jan 13, 2024

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

@holema
Copy link
Contributor

holema commented Jan 13, 2024

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

@gpahlevanzadeh
Copy link
Author

I changed to https and still I get invalid_uri

@gpahlevanzadeh
Copy link
Author

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

Do you mean VICH_BASE ?

@gpahlevanzadeh
Copy link
Author

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
Copy link
Author

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

@holema
Copy link
Contributor

holema commented Jan 14, 2024

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
Copy link
Author

gpahlevanzadeh commented Apr 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants