Class AzureClientAssertionApi

java.lang.Object
com.github.scribejava.core.builder.api.DefaultApi20
com.github.scribejava.apis.microsoftazureactivedirectory.BaseMicrosoftAzureActiveDirectoryApi
com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api
com.microsoft.jenkins.azuread.scribe.AzureAdApi
com.microsoft.jenkins.azuread.scribe.AzureClientAssertionApi

public class AzureClientAssertionApi extends AzureAdApi
Custom ScribeJava API for flows authenticating with a client assertion, i.e. certificate-based authentication and Workload Identity Federation.

When authenticating to Entra ID, this class replaces the normal client_secret parameter with a client_assertion and client_assertion_type. The assertion is produced by the given factory, which receives the token endpoint (the required aud claim for certificate-signed assertions).

  • Field Summary

    Fields inherited from class com.github.scribejava.apis.microsoftazureactivedirectory.BaseMicrosoftAzureActiveDirectoryApi

    COMMON_TENANT
  • Method Summary

    Modifier and Type
    Method
    Description
    custom(String tenant, String authorityHost, Function<String,String> clientAssertionFactory)
     
    com.github.scribejava.core.oauth2.clientauthentication.ClientAuthentication
     

    Methods inherited from class com.microsoft.jenkins.azuread.scribe.AzureAdApi

    custom, getAccessTokenEndpoint, getAuthorizationBaseUrl, getLogoutUrl

    Methods inherited from class com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api

    custom, getBearerSignature, getEndpointVersionPath, instance

    Methods inherited from class com.github.scribejava.core.builder.api.DefaultApi20

    createService, getAccessTokenExtractor, getAccessTokenVerb, getAuthorizationUrl, getDeviceAuthorizationEndpoint, getDeviceAuthorizationExtractor, getRefreshTokenEndpoint, getRevokeTokenEndpoint

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • custom

      public static AzureClientAssertionApi custom(String tenant, String authorityHost, Function<String,String> clientAssertionFactory)
    • getClientAuthentication

      public com.github.scribejava.core.oauth2.clientauthentication.ClientAuthentication getClientAuthentication()
      Overrides:
      getClientAuthentication in class com.github.scribejava.apis.microsoftazureactivedirectory.BaseMicrosoftAzureActiveDirectoryApi