diff --git a/authentication/auth.go b/authentication/auth.go index 837a5694..25532849 100644 --- a/authentication/auth.go +++ b/authentication/auth.go @@ -73,8 +73,8 @@ func VerifyLogin(clientID string) (string, error) { ClientSecret: "", Scopes: []string{"openid"}, Endpoint: oauth2.Endpoint{ - AuthURL: "https://sso.stage.redhat.com/auth/realms/redhat-external/protocol/openid-connect/auth", - TokenURL: "https://sso.stage.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token", + AuthURL: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/auth", + TokenURL: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token", }, RedirectURL: "http://127.0.0.1:9998/oauth/callback", } diff --git a/examples/verify_authentication.go b/examples/verify_authentication.go index adf607c5..2fed36be 100644 --- a/examples/verify_authentication.go +++ b/examples/verify_authentication.go @@ -26,7 +26,7 @@ func main() { } // Create the connection, and remember to close it: - token, err := authentication.VerifyLogin("cloud-services") + token, err := authentication.VerifyLogin("ocm-cli") if err != nil { fmt.Fprintf(os.Stderr, "Can't get token: %v\n", err) os.Exit(1) @@ -34,7 +34,6 @@ func main() { connection, err := sdk.NewConnectionBuilder(). Logger(logger). Tokens(token). - URL("http://localhost:8000"). BuildContext(ctx) if err != nil { fmt.Fprintf(os.Stderr, "Can't build connection: %v\n", err)