## GetSSOLoginURL `client.Accounts.GetSSOLoginURL(ctx, body) (*AccountGetSSOLoginURLResponse, error)` **post** `/gitpod.v1.AccountService/GetSSOLoginURL` Gets the SSO login URL for a specific email domain. Use this method to: - Initiate SSO authentication - Get organization-specific login URLs - Handle SSO redirects ### Examples - Get login URL: Retrieves SSO URL for email domain. ```yaml email: "user@company.com" ``` - Get URL with return path: Gets SSO URL with specific return location. ```yaml email: "user@company.com" returnTo: "https://gitpod.io/workspaces" ``` ### Parameters - `body AccountGetSSOLoginURLParams` - `Email param.Field[string]` email is the email the user wants to login with - `ReturnTo param.Field[string]` return_to is the URL the user will be redirected to after login ### Returns - `type AccountGetSSOLoginURLResponse struct{…}` - `LoginURL string` login_url is the URL to redirect the user to for SSO login ### Example ```go package main import ( "context" "fmt" "github.com/gitpod-io/gitpod-sdk-go" "github.com/gitpod-io/gitpod-sdk-go/option" ) func main() { client := gitpod.NewClient( option.WithBearerToken("My Bearer Token"), ) response, err := client.Accounts.GetSSOLoginURL(context.TODO(), gitpod.AccountGetSSOLoginURLParams{ Email: gitpod.F("user@company.com"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.LoginURL) } ``` #### Response ```json { "loginUrl": "loginUrl" } ```