@Extension public class KubesphereApiTokenAuthenticator extends BasicHeaderAuthenticator
Modifier and Type | Class and Description |
---|---|
static class |
KubesphereApiTokenAuthenticator.CacheEntry<T> |
static class |
KubesphereApiTokenAuthenticator.CacheMap<K,V>
While we could use Guava's CacheBuilder the method signature changes make using it problematic.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static com.squareup.okhttp.MediaType |
JSON |
Constructor and Description |
---|
KubesphereApiTokenAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp,
String username,
String password) |
static KubesphereTokenReviewResponse |
getReviewResponse(String username,
String token) |
static KubesphereTokenReviewResponse |
getReviewResponseFromApiServer(String baseUrl,
String username,
String token) |
all
public Authentication authenticate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String username, String password) throws javax.servlet.ServletException
authenticate
in class BasicHeaderAuthenticator
javax.servlet.ServletException
public static KubesphereTokenReviewResponse getReviewResponse(String username, String token) throws IOException
IOException
public static KubesphereTokenReviewResponse getReviewResponseFromApiServer(String baseUrl, String username, String token) throws IOException
IOException
Copyright © 2016–2020. All rights reserved.