OIDCClientsGenerateRules#

pydantic model phalanx.models.secrets.OIDCClientsGenerateRules#

Rules for generating a secret from the OIDC clients.

Parameters:

data (Any)

Show JSON schema
{
   "title": "OIDCClientsGenerateRules",
   "description": "Rules for generating a secret from the OIDC clients.",
   "type": "object",
   "properties": {
      "type": {
         "const": "oidc-clients",
         "description": "Type of secret",
         "title": "Secret type",
         "type": "string"
      }
   },
   "additionalProperties": false,
   "required": [
      "type"
   ]
}

Config:
  • extra: str = forbid

  • populate_by_name: bool = True

  • validate_by_alias: bool = True

  • validate_by_name: bool = True

Fields:
field type: Literal[<SecretGenerateType.oidc_clients: 'oidc-clients'>] [Required]#

Type of secret

generate(source)#

Generate a new secret using these rules.

Parameters:

source (dict[str, OIDCClientSecret]) – OpenID Connect client information.

Returns:

New secret.

Return type:

pydantic.SecretStr

property always_generate: bool#

Whether to always generate this secret.