diff --git a/services/openshift-service-api/src/main/java/io/fabric8/launcher/service/openshift/api/OpenShiftCluster.java b/services/openshift-service-api/src/main/java/io/fabric8/launcher/service/openshift/api/OpenShiftCluster.java index 361b0d50a..48080c45d 100644 --- a/services/openshift-service-api/src/main/java/io/fabric8/launcher/service/openshift/api/OpenShiftCluster.java +++ b/services/openshift-service-api/src/main/java/io/fabric8/launcher/service/openshift/api/OpenShiftCluster.java @@ -1,12 +1,13 @@ package io.fabric8.launcher.service.openshift.api; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import io.fabric8.launcher.base.Paths; import org.immutables.value.Value; +import javax.annotation.Nullable; + /** * @author George Gastaldi */ @@ -30,4 +31,9 @@ default String getName() { @Nullable String getConsoleUrl(); + + @Value.Default + default String getOauthUrl() { + return Paths.join(getApiUrl(), "/oauth/authorize"); + } }