public abstract class JwtAuthenticationService extends Object implements hudson.model.UnprotectedRootAction, hudson.ExtensionPoint
Constructor and Description |
---|
JwtAuthenticationService() |
Modifier and Type | Method and Description |
---|---|
SigningPublicKey |
getJwks(String keyId)
Binds Json web key to the URL space.
|
abstract JwtAuthenticationServiceImpl.JwtResponse |
getToken(Integer expiryTimeInMins,
Integer maxExpiryTimeInMins)
Gives JWT token for authenticated user.
|
String |
getUrlName() |
public String getUrlName()
getUrlName
in interface hudson.model.Action
@GET @WebMethod(name="token") public abstract JwtAuthenticationServiceImpl.JwtResponse getToken(@Nullable @QueryParameter(value="expiryTimeInMins") Integer expiryTimeInMins, @Nullable @QueryParameter(value="maxExpiryTimeInMins") Integer maxExpiryTimeInMins)
expiryTimeInMins
- token expiry time. Default 30 min.maxExpiryTimeInMins
- max token expiry time. Default expiry time is 8 hours (480 mins)@GET public SigningPublicKey getJwks(String keyId)
keyId
- keyId of the keyCopyright © 2016–2018. All rights reserved.