Skip to content

Commit

Permalink
feature: add OpenShiftCluster#getOauthUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored and edewit committed Sep 3, 2019
1 parent 1870acc commit 0e6909d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 <a href="mailto:[email protected]">George Gastaldi</a>
*/
Expand All @@ -30,4 +31,9 @@ default String getName() {

@Nullable
String getConsoleUrl();

@Value.Default
default String getOauthUrl() {
return Paths.join(getApiUrl(), "/oauth/authorize");
}
}

0 comments on commit 0e6909d

Please sign in to comment.