zitadel / zitadel-go

ZITADEL Go - The official client library of ZITADEL for an easy integration into your Go project.
https://zitadel.com
Apache License 2.0
63 stars 21 forks source link

Server gave HTTP response to HTTPS client #314

Open barcollin opened 3 months ago

barcollin commented 3 months ago

I have tried to run the same code as this example and I am running zitadel locally. And I get this error when I run the code provided here : https://github.com/zitadel/zitadel-go/blob/main/example/http/http.go

go run main.go -key=./key.json -domain=localhost:8080 

2024/03/13 16:01:35 ERROR zitadel sdk could not initialize error="Get \"https://localhost:8080/.well-known/openid-configuration\": http: server gave HTTP response to HTTPS client"
exit status 1

Is there a way to run zitadel with https connection locally?

adlerhurst commented 2 months ago

We provide some self hosting examples which allow to use zitadel using https. For example here: https://zitadel.com/docs/self-hosting/manage/reverseproxy/nginx#tls-mode-external

I need to check if you can overwrite the domain so that you can use http as well which might be the easiest.