Package com.microsoft.jenkins.azuread
Class AzureSecurityRealm
java.lang.Object
hudson.model.AbstractDescribableImpl<SecurityRealm>
hudson.security.SecurityRealm
com.microsoft.jenkins.azuread.AzureSecurityRealm
- All Implemented Interfaces:
ExtensionPoint
,Describable<SecurityRealm>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
SecurityRealm.SecurityComponents
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
-
Constructor Summary
ConstructorDescriptionAzureSecurityRealm
(String tenant, String clientId, Secret clientSecret, int cacheDuration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.kohsuke.stapler.HttpResponse
doCommenceLogin
(org.kohsuke.stapler.StaplerRequest request, String referer) org.kohsuke.stapler.HttpResponse
doFinishLogin
(org.kohsuke.stapler.StaplerRequest request) com.azure.core.credential.AccessToken
int
org.jose4j.jwt.consumer.JwtConsumer
protected String
getPostLogOutUrl2
(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) boolean
boolean
boolean
boolean
loadGroupByGroupname2
(String groupName, boolean fetchMembers) void
setAzureEnvironmentName
(String azureEnvironmentName) void
setCacheDuration
(int cacheDuration) void
setCaches
(com.github.benmanes.caffeine.cache.Cache<String, AzureAdUser> caches) void
setClientCertificate
(String clientCertificate) void
setClientId
(String clientId) void
setClientSecret
(String clientSecret) void
setCredentialType
(String credentialType) void
setDisableGraphIntegration
(boolean disableGraphIntegration) void
setDomainHint
(String domainHint) void
setFromRequest
(boolean fromRequest) void
setPromptAccount
(boolean promptAccount) void
setSingleLogout
(boolean singleLogout) void
Methods inherited from class hudson.security.SecurityRealm
all, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, loadUserByUsername2, setCaptchaSupport, validateCaptcha
-
Field Details
-
CALLBACK_URL
- See Also:
-
CONVERTER_DISABLE_GRAPH_INTEGRATION
- See Also:
-
CONVERTER_SINGLE_LOGOUT
- See Also:
-
CONVERTER_PROMPT_ACCOUNT
- See Also:
-
CONVERTER_DOMAIN_HINT
- See Also:
-
CONVERTER_ENVIRONMENT_NAME
- See Also:
-
-
Constructor Details
-
AzureSecurityRealm
-
AzureSecurityRealm
public AzureSecurityRealm()
-
-
Method Details
-
getAccessToken
public com.azure.core.credential.AccessToken getAccessToken() -
isPromptAccount
public boolean isPromptAccount() -
setPromptAccount
@DataBoundSetter public void setPromptAccount(boolean promptAccount) -
getDomainHint
-
setDomainHint
-
isSingleLogout
public boolean isSingleLogout() -
setSingleLogout
@DataBoundSetter public void setSingleLogout(boolean singleLogout) -
getClientIdSecret
-
getClientSecretSecret
-
getClientCertificateSecret
-
getCredentialType
-
getTenantSecret
-
getClientId
-
getAzureEnvironmentName
-
setAzureEnvironmentName
-
isDisableGraphIntegration
public boolean isDisableGraphIntegration() -
setDisableGraphIntegration
@DataBoundSetter public void setDisableGraphIntegration(boolean disableGraphIntegration) -
setCredentialType
-
setClientId
-
getClientSecret
-
getClientCertificate
-
setClientSecret
-
setClientCertificate
-
getTenant
-
setTenant
-
getCacheDuration
public int getCacheDuration() -
setCacheDuration
public void setCacheDuration(int cacheDuration) -
setCaches
-
isFromRequest
public boolean isFromRequest() -
setFromRequest
@DataBoundSetter public void setFromRequest(boolean fromRequest) -
getJwtConsumer
public org.jose4j.jwt.consumer.JwtConsumer getJwtConsumer() -
doCommenceLogin
public org.kohsuke.stapler.HttpResponse doCommenceLogin(org.kohsuke.stapler.StaplerRequest request, @Header("Referer") String referer) -
doFinishLogin
public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request) throws org.jose4j.jwt.consumer.InvalidJwtException, IOException - Throws:
org.jose4j.jwt.consumer.InvalidJwtException
IOException
-
getPostLogOutUrl2
protected String getPostLogOutUrl2(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) - Overrides:
getPostLogOutUrl2
in classSecurityRealm
-
createSecurityComponents
- Specified by:
createSecurityComponents
in classSecurityRealm
-
loadGroupByGroupname2
- Overrides:
loadGroupByGroupname2
in classSecurityRealm
-
allowsSignup
public boolean allowsSignup()- Overrides:
allowsSignup
in classSecurityRealm
-
getLoginUrl
- Overrides:
getLoginUrl
in classSecurityRealm
-