#### [Abblix\.Jwt\.Vault](https://www.abblix.com/en/docs/api/abblix-jwt-vault 'index')
### [Abblix\.Jwt\.Vault](https://www.abblix.com/en/docs/api/abblix-jwt-vault/Abblix.Jwt.Vault 'Abblix\.Jwt\.Vault')

## VaultAuthenticationOptions Class

Makes the package obtain its own Vault token by logging in against an auth method, and keep it alive:
renew before the lease ends, log in again when the lease cannot be extended further\. Configuring this
section replaces a statically supplied [Token](https://www.abblix.com/en/docs/api/abblix-jwt-vault/Abblix.Jwt.Vault.VaultTransitOptions#Abblix.Jwt.Vault.VaultTransitOptions.Token 'Abblix\.Jwt\.Vault\.VaultTransitOptions\.Token'); leaving it absent keeps
today's posture, where the host hands a token over and owns its lifetime\.

```csharp
public sealed class VaultAuthenticationOptions
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → VaultAuthenticationOptions

### Remarks
Exactly one of the method subsections must be set\. The section is null when a host does not configure it \-
there is deliberately no default instance, because an empty section and an absent one must stay
distinguishable for the feature to have an off switch\.
### Properties

## VaultAuthenticationOptions\.AppRole Property {#Abblix.Jwt.Vault.VaultAuthenticationOptions.AppRole}

Log in with an AppRole's role and secret identifiers, which is the arrangement for a host outside
Kubernetes or one whose Vault does not trust the cluster\.

```csharp
public Abblix.Jwt.Vault.AppRoleAuthenticationOptions? AppRole { get; set; }
```

#### Property Value
[AppRoleAuthenticationOptions](https://www.abblix.com/en/docs/api/abblix-jwt-vault/Abblix.Jwt.Vault.AppRoleAuthenticationOptions 'Abblix\.Jwt\.Vault\.AppRoleAuthenticationOptions')

## VaultAuthenticationOptions\.Kubernetes Property {#Abblix.Jwt.Vault.VaultAuthenticationOptions.Kubernetes}

Log in with the pod's projected service\-account token, which is the arrangement for a host running on
Kubernetes: the kubelet rotates the file and this package re\-reads it on every login\.

```csharp
public Abblix.Jwt.Vault.KubernetesAuthenticationOptions? Kubernetes { get; set; }
```

#### Property Value
[KubernetesAuthenticationOptions](https://www.abblix.com/en/docs/api/abblix-jwt-vault/Abblix.Jwt.Vault.KubernetesAuthenticationOptions 'Abblix\.Jwt\.Vault\.KubernetesAuthenticationOptions')
