Documentation
¶
Overview ¶
Command embedded shows how a host program mounts identity into its own Go server instead of running the dedicated container. It builds one identityserver.Server and exposes it on both surfaces:
- a native *grpc.Server, alongside the host's own gRPC services, and
- an http.ServeMux, alongside the host's own HTTP routes.
Run it with:
go run ./examples/embedded
It uses the in-memory repository so it boots with no external dependencies. A real deployment sets GATEWAY_REPO_DRIVER=entdb (and the rest of the GATEWAY_* config) and uses identityserver.OptionsFromEnv.
Click to show internal directories.
Click to hide internal directories.