@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) |
allpublic Authentication authenticate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String username, String password) throws javax.servlet.ServletException
authenticate in class BasicHeaderAuthenticatorjavax.servlet.ServletExceptionpublic static KubesphereTokenReviewResponse getReviewResponse(String username, String token) throws IOException
IOExceptionpublic static KubesphereTokenReviewResponse getReviewResponseFromApiServer(String baseUrl, String username, String token) throws IOException
IOExceptionCopyright © 2016–2020. All rights reserved.