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 committed Aug 26, 2019
1 parent 0f5a092 commit e213be1
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 e213be1

Please sign in to comment.