Class Oauth2ProxyHeaderValue
Oauth2Proxy header value model.
Namespace: Neon.Kube.Oauth2Proxy
Assembly: Neon.Kube.dll
Syntax
public class Oauth2ProxyHeaderValue
Constructors
Oauth2ProxyHeaderValue()
Constructor.
Declaration
public Oauth2ProxyHeaderValue()
Properties
BasicAuthPassword
Converts this claim into a basic auth header. Note the value of claim will become the basic auth username and the basicAuthPassword will be used as the password value.
Declaration
[JsonProperty(PropertyName = "BasicAuthPassword", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "basicAuthPassword", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public Oauth2ProxySecretSource BasicAuthPassword { get; set; }
Property Value
Type | Description |
---|---|
Oauth2ProxySecretSource |
Claim
The name of the claim in the session that the value should be loaded from.
Declaration
[JsonProperty(PropertyName = "Claim", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "claim", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public string Claim { get; set; }
Property Value
Type | Description |
---|---|
string |
FromEnv
Expects the name of an environment variable.
Declaration
[JsonProperty(PropertyName = "FromEnv", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "fromEnv", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public string FromEnv { get; set; }
Property Value
Type | Description |
---|---|
string |
FromFile
Expects a path to a file containing the secret value.
Declaration
[JsonProperty(PropertyName = "FromFile", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "fromFile", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public string FromFile { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
An optional prefix that will be prepended to the value of the claim if it is non-empty.
Declaration
[JsonProperty(PropertyName = "Prefix", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "prefix", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
Value
A base64 encoded string value.
Declaration
[JsonProperty(PropertyName = "Value", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Ignore)]
[YamlMember(Alias = "value", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull)]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string |