Class GoogleAuthServiceConfig

java.lang.Object
io.micronaut.gcp.http.client.GoogleAuthServiceConfig

@EachProperty("gcp.http.client.auth.services") public class GoogleAuthServiceConfig extends Object
Creates a GoogleAuthServiceConfig for each Service configured under gcp.http.client.auth.services.*.audience. The audience can be configured per service and the correct config bean is selected in GoogleAuthFilter via the service id inside the corresponding request. Requires the user to set the gcp.http.client.auth.services.*.audience property with the desired audience to create the corresponding config bean.
Since:
1.0.0
Author:
kgreulich
  • Field Details

  • Constructor Details

    • GoogleAuthServiceConfig

      public GoogleAuthServiceConfig(@Parameter String serviceId)
  • Method Details

    • getServiceId

      public String getServiceId()
      Returns:
      the audience service identifier
    • getAudience

      public String getAudience()
      Returns:
      the desired audience
    • setAudience

      public void setAudience(String audience)
      Parameters:
      audience - set the desired audience