Class AzureSecurityRealm

    • Constructor Detail

      • AzureSecurityRealm

        @DataBoundConstructor
        public AzureSecurityRealm​(String tenant,
                                  String clientId,
                                  Secret clientSecret,
                                  int cacheDuration)
      • AzureSecurityRealm

        public AzureSecurityRealm()
    • Method Detail

      • getAccessToken

        public com.azure.core.credential.AccessToken getAccessToken()
      • isPromptAccount

        public boolean isPromptAccount()
      • setPromptAccount

        @DataBoundSetter
        public void setPromptAccount​(boolean promptAccount)
      • isSingleLogout

        public boolean isSingleLogout()
      • setSingleLogout

        @DataBoundSetter
        public void setSingleLogout​(boolean singleLogout)
      • getClientIdSecret

        public String getClientIdSecret()
      • getClientSecretSecret

        public String getClientSecretSecret()
      • 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)
      • setClientId

        public void setClientId​(String clientId)
      • getClientSecret

        public Secret getClientSecret()
      • setClientSecret

        public void setClientSecret​(String clientSecret)
      • 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