Hey guys!
Been testing out the Go SDK (I need the ziti identity from connections, Go seems to be the only SDK where that is possible or am I wrong?) and I've been having trouble getting the examples working.
I cloned the repo and tried this example following the instructions and when I try running it I get:
./simple-server simple-server-3.json simpleService
Using the provided service name [simpleService]listening for non-ziti requests on localhost:8080
Error binding service failed to listen: no apiSession, authentication attempt failed: failed to initiate authorization flow: authentication request start failed with status 404, either a misconfigured request was sent or the expected redirect URL (http://localhost:8080/auth/callback) is not allowed: {"error":{"cause":{"code":"UNHANDLED","message":"path /edge/client/v1/oidc/authorize was not found"},"code":"NOT_FOUND","message":"The resource requested was not found or is no longer available","requestId":"6hnH2xhlds"},"meta":{"apiEnrollmentVersion":"0.0.1","apiVersion":"0.0.1"}}
panic: failed to listen: no apiSession, authentication attempt failed: failed to initiate authorization flow: authentication request start failed with status 404, either a misconfigured request was sent or the expected redirect URL (http://localhost:8080/auth/callback) is not allowed: {"error":{"cause":{"code":"UNHANDLED","message":"path /edge/client/v1/oidc/authorize was not found"},"code":"NOT_FOUND","message":"The resource requested was not found or is no longer available","requestId":"6hnH2xhlds"},"meta":{"apiEnrollmentVersion":"0.0.1","apiVersion":"0.0.1"}}
goroutine 4 [running]:
main.zitifiedServer()
/mnt/c/dev/sdk-golang/example/simple-server/simple-server.go:91 +0x31a
created by main.main in goroutine 1
/mnt/c/dev/sdk-golang/example/simple-server/simple-server.go:105 +0xd2
The identity should be ok, it works with my Nodejs ziti application. Any ideas?
Thanks!
Controller: v1.6.9
go version go1.25.0 linux/amd64