Class EnvironmentCredentialsCondition

java.lang.Object
io.micronaut.azure.condition.EnvironmentCredentialsCondition
All Implemented Interfaces:
io.micronaut.context.condition.Condition, Predicate<io.micronaut.context.condition.ConditionContext>

public class EnvironmentCredentialsCondition extends Object implements io.micronaut.context.condition.Condition

A custom condition that matches when the following environment variables are defined.

  • AZURE_CLIENT_ID
  • AZURE_CLIENT_SECRET
  • AZURE_TENANT_ID

or:

  • AZURE_CLIENT_ID
  • AZURE_CLIENT_CERTIFICATE_PATH
  • AZURE_TENANT_ID

or:

  • AZURE_CLIENT_ID
  • AZURE_USERNAME
  • AZURE_PASSWORD
Since:
3.3.1
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • EnvironmentCredentialsCondition

      public EnvironmentCredentialsCondition()
  • Method Details

    • matches

      public boolean matches(io.micronaut.context.condition.ConditionContext context)
      Specified by:
      matches in interface io.micronaut.context.condition.Condition