Class CloudFoundryOptions
- Namespace
- Steeltoe.Security.Authentication.CloudFoundry.Wcf
- Assembly
- Steeltoe.Security.Authentication.CloudFoundryWcf.dll
public class CloudFoundryOptions : AuthServerOptions
- Inheritance
-
CloudFoundryOptions
- Inherited Members
Constructors
CloudFoundryOptions(IConfiguration)
[Obsolete("This constructor is expected to be removed in a future release. Please reach out if this constructor is important to you!")]
public CloudFoundryOptions(IConfiguration config)
Parameters
config
IConfiguration
CloudFoundryOptions(LoggerFactory)
Initializes a new instance of the CloudFoundryOptions class.
public CloudFoundryOptions(LoggerFactory loggerFactory = null)
Parameters
loggerFactory
LoggerFactoryFor logging within the library
CloudFoundryOptions(string, LoggerFactory)
[Obsolete("This constructor is expected to be removed in a future release. Please reach out if this constructor is important to you!")]
public CloudFoundryOptions(string authUrl, LoggerFactory loggerFactory = null)
Parameters
authUrl
stringloggerFactory
LoggerFactory
CloudFoundryOptions(string, string, string, LoggerFactory)
[Obsolete("This constructor is expected to be removed in a future release. Please reach out if this constructor is important to you!")]
public CloudFoundryOptions(string authDomain, string clientId, string clientSecret, LoggerFactory loggerFactory = null)
Parameters
authDomain
stringclientId
stringclientSecret
stringloggerFactory
LoggerFactory
Fields
AUTHENTICATION_SCHEME
public const string AUTHENTICATION_SCHEME = "CloudFoundry"
Field Value
OAUTH_AUTHENTICATION_SCHEME
public const string OAUTH_AUTHENTICATION_SCHEME = "CloudFoundry.OAuth"
Field Value
Properties
AccessTokenEndpoint
Gets or sets the Access Token URI. Default value is /oauth/token
public string AccessTokenEndpoint { get; set; }
Property Value
AuthorizationEndpoint
Gets or sets the authorization endpoint. Default value is /oauth/authorize
public string AuthorizationEndpoint { get; set; }
Property Value
ForwardUserCredentials
Gets or sets a value indicating whether to use app credentials or forward users's credentials
public bool ForwardUserCredentials { get; set; }
Property Value
Remarks
Setting to true results in passing the user's JWT to downstream services
JwtKeyEndpoint
[Obsolete("This property will be removed in a future release. Use CloudFoundryDefaults.JwtTokenKey instead")]
public string JwtKeyEndpoint { get; set; }
Property Value
OAuthServiceUrl
[Obsolete("This property will be removed in a future release. Use AuthorizationUrl instead")]
public string OAuthServiceUrl { get; set; }
Property Value
TokenInfoEndpoint
[Obsolete("This property will be removed in a future release. Use CloudFoundryDefaults.CheckTokenUri instead")]
public string TokenInfoEndpoint { get; set; }
Property Value
TokenInfoUrl
public string TokenInfoUrl { get; }
Property Value
TokenValidationParameters
public TokenValidationParameters TokenValidationParameters { get; set; }
Property Value
UserInformationEndpoint
Gets or sets the User Information Endpoint. Default value is /userinfo
public string UserInformationEndpoint { get; set; }
Property Value
ValidateAudience
Gets or sets a value indicating whether the token's audience should be validated
public bool ValidateAudience { get; set; }
Property Value
ValidateIssuer
Gets or sets a value indicating whether the token's issuer should be validated
public bool ValidateIssuer { get; set; }
Property Value
ValidateLifetime
Gets or sets a value indicating whether the token's lifetime should be validated
public bool ValidateLifetime { get; set; }