Class AzureSecurityRealm

All Implemented Interfaces:
ExtensionPoint, Describable<SecurityRealm>

public class AzureSecurityRealm extends SecurityRealm
  • Field Details

  • Constructor Details

    • AzureSecurityRealm

      @DataBoundConstructor public AzureSecurityRealm(String tenant, String clientId, Secret clientSecret, int cacheDuration)
    • 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

      public String getDomainHint()
    • setDomainHint

      @DataBoundSetter public void setDomainHint(String domainHint)
    • isSingleLogout

      public boolean isSingleLogout()
    • setSingleLogout

      @DataBoundSetter public void setSingleLogout(boolean singleLogout)
    • getClientIdSecret

      public String getClientIdSecret()
    • getClientSecretSecret

      public String getClientSecretSecret()
    • getClientCertificateSecret

      public String getClientCertificateSecret()
    • getCredentialType

      public String getCredentialType()
    • getTenantSecret

      public String getTenantSecret()
    • getClientId

      public String getClientId()
    • getAzureEnvironmentName

      public String getAzureEnvironmentName()
    • setAzureEnvironmentName

      @DataBoundSetter public void setAzureEnvironmentName(String azureEnvironmentName)
    • isDisableGraphIntegration

      public boolean isDisableGraphIntegration()
    • setDisableGraphIntegration

      @DataBoundSetter public void setDisableGraphIntegration(boolean disableGraphIntegration)
    • setCredentialType

      @DataBoundSetter public void setCredentialType(String credentialType)
    • setClientId

      public void setClientId(String clientId)
    • getClientSecret

      public Secret getClientSecret()
    • getClientCertificate

      public Secret getClientCertificate()
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • setClientCertificate

      @DataBoundSetter public void setClientCertificate(String clientCertificate)
    • getTenant

      public String getTenant()
    • setTenant

      public void setTenant(String tenant)
    • getCacheDuration

      public int getCacheDuration()
    • setCacheDuration

      public void setCacheDuration(int cacheDuration)
    • setCaches

      public void setCaches(com.github.benmanes.caffeine.cache.Cache<String,AzureAdUser> caches)
    • 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 class SecurityRealm
    • createSecurityComponents

      public SecurityRealm.SecurityComponents createSecurityComponents()
      Specified by:
      createSecurityComponents in class SecurityRealm
    • loadGroupByGroupname2

      public GroupDetails loadGroupByGroupname2(String groupName, boolean fetchMembers)
      Overrides:
      loadGroupByGroupname2 in class SecurityRealm
    • allowsSignup

      public boolean allowsSignup()
      Overrides:
      allowsSignup in class SecurityRealm
    • getLoginUrl

      public String getLoginUrl()
      Overrides:
      getLoginUrl in class SecurityRealm