diff --git a/docs/docs/examples/login/go.md b/docs/docs/examples/login/go.md index ef56f448c..61b55f87f 100644 --- a/docs/docs/examples/login/go.md +++ b/docs/docs/examples/login/go.md @@ -28,7 +28,7 @@ We recommend that you use [Proof Key for Code Exchange (PKCE)](/apis/openidoauth The Redirect URIs field tells ZITADEL where it's allowed to redirect users after authentication. For development, you can set dev mode to `true` to enable insecure HTTP and redirect to a `localhost` URI. The Post-logout redirect send the users back to a route on your application after they have logged out. -> If you are following along with the [example](https://github.com/zitadel/zitadel-go), set the dev mode to `true`, the Redirect URIs to and Post redirect URI to . +> If you are following along with the [example](https://github.com/zitadel/zitadel-go), set the dev mode to `true`, the Redirect URIs to and Post-logout redirect URI to . ![Create app in console - set redirectURI](/img/go/app-create-redirect.png) @@ -70,7 +70,7 @@ The SDK itself will then register three routes on that to be able to: - start the authentication process and redirect to the Login UI (`/auth/login`) - continue with the authentication process after the login UI (`/auth/callback`) - terminate the session (`/auth/logout`) - - + ```go router.Handle("/auth/", z.Authentication) ``` @@ -119,7 +119,7 @@ https://github.com/zitadel/zitadel-go/blob/next/example/app/templates/profile.ht You will need to provide some values for the program to run: - `domain`: Your ZITADEL instance domain, e.g. my-domain.zitadel.cloud -- `key`: The path to the downloaded key.json +- `key`: Random secret string. Used for symmetric encryption of state parameters, cookies and PCKE. - `clientID`: The clientID provided by ZITADEL - `redirectURI`: The redirectURI registered at ZITADEL - `port`: The port on which the API will be accessible, default it 8089