Class GraphClientCache

java.lang.Object
com.microsoft.jenkins.azuread.GraphClientCache

public class GraphClientCache extends Object
  • Constructor Details

    • GraphClientCache

      public GraphClientCache()
  • Method Details

    • getWorkloadIdentityToken

      public static String getWorkloadIdentityToken(String federatedCredentialsId)
    • getClient

      public static io.jenkins.plugins.microsoftgraph.GraphServiceClient getClient(AzureSecurityRealm azureSecurityRealm)
    • addProxyToHttpClientIfRequired

      public static okhttp3.OkHttpClient.Builder addProxyToHttpClientIfRequired(okhttp3.OkHttpClient.Builder builder, String targetUrl)
      Parameters:
      targetUrl - the full URL (including scheme) of the service the client will talk to, used to evaluate the proxy exclusion list