forked from fabric8-launcher/launcher-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add OpenShiftCluster#getOauthUrl
Fixes fabric8-launcher#972
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
*/ | ||
|
@@ -30,4 +31,9 @@ default String getName() { | |
|
||
@Nullable | ||
String getConsoleUrl(); | ||
|
||
@Value.Default | ||
default String getOauthUrl() { | ||
return Paths.join(getApiUrl(), "/oauth/authorize"); | ||
} | ||
} |