Class AuthConfig

java.lang.Object
io.quarkiverse.openapi.generator.AuthConfig

public class AuthConfig extends Object
This class represents the runtime authentication related configuration for an individual securityScheme present on an OpenApi spec definition, i.e. the provided files.
  • Field Details

    • TOKEN_PROPAGATION

      public static final String TOKEN_PROPAGATION
      See Also:
    • HEADER_NAME

      public static final String HEADER_NAME
      See Also:
    • tokenPropagation

      @ConfigItem(defaultValue="false") public Optional<Boolean> tokenPropagation
      Enables the authentication token propagation for this particular securityScheme.

      For example, given a file named petstore.json with a securityScheme named "petstore-auth" the following configuration must be used.

      quarkus.openapi-generator.petstore_json.auth.petstore_auth.token-propagation=true

      See Also:
    • headerName

      @ConfigItem public Optional<String> headerName
      Configures a particular http header attribute from were to take the security token from when the token propagation is enabled. Use this fine-grained configuration in very particular scenarios.

      For example, given a file named petstore.json with a securityScheme named "petstore-auth" the following configuration must be used.

      quarkus.openapi-generator.petstore_json.auth.petstore_auth.header-name=MyParticularHttpHeaderName

      See Also:
    • authConfigParams

      @ConfigItem(name="<<parent>>") public Map<String,String> authConfigParams
      Configures a particular parameter value to be used by any of the different internal authentication filters that processes the different securityScheme definitions.

      For example, given a file named petstore.json with a securityScheme named "petstore-basic-auth", that is of http basic authentication type, the following configuration can establish the user and password to be used. must be used.

      quarkus.openapi-generator.petstore_json.auth.petstore_basic_auth.username=MyUserName quarkus.openapi-generator.petstore_json.auth.petstore_basic_auth.password=MyPassword

      See Also:
  • Constructor Details

    • AuthConfig

      public AuthConfig()
  • Method Details