OauthAccessToken​Oauth​Access​Token

yaml
type: "io.kestra.plugin.azure.auth.OauthAccessToken"

Fetch an OAuth access token.

Examples

yaml
id: azure_get_token
namespace: company.team

tasks:
  - id: get_access_token
    type: io.kestra.plugin.azure.oauth.OauthAccessToken
    tenantId: "{{ secret('SERVICE_PRINCIPAL_TENANT_ID') }}"
    clientId: "{{ secret('SERVICE_PRINCIPAL_CLIENT_ID') }}"
    clientSecret: "{{ secret('SERVICE_PRINCIPAL_CLIENT_SECRET') }}"

Properties

tenantId

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default:

Tenant ID

clientId

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default:

Client ID

clientSecret

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default:

Client Secret

Service principal client secret. The tenantId, clientId and clientSecret of the service principal are required for this credential to acquire an access token.

pemCertificate

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default:

PEM Certificate

Your stored PEM certificate.
The tenantId, clientId and clientCertificate of the service principal are required for this credential to acquire an access token.

scopes

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required:
  • Default: ["https://management.azure.com/.default"]

The Azure scopes to be used

Outputs

accessToken

Definitions

io.kestra.plugin.azure.auth.OauthAccessToken-AccessTokenOutput

  • expirationTime
    • Type: string
    • Dynamic:
    • Required:
    • Format: date-time
  • scopes
    • Type: array
    • SubType: string
    • Dynamic:
    • Required:
  • tokenValue
    • Type: string
    • Dynamic:
    • Required: