Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
feature: add OpenShiftCluster#getOauthUrl
Browse files Browse the repository at this point in the history
Fixes #972
  • Loading branch information
gastaldi authored and edewit committed Aug 29, 2019
1 parent 363063d commit dd41668
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 dd41668

Please sign in to comment.