-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
721 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/Auth0.ManagementApi/Models/Client/ClientAuthenticationMethods.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Structure for a client's authentication methods | ||
/// </summary> | ||
public class ClientAuthenticationMethods | ||
{ | ||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.PrivateKeyJwt"/> | ||
/// </summary> | ||
[JsonProperty("private_key_jwt")] | ||
public PrivateKeyJwt PrivateKeyJwt { get; set; } | ||
|
||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.TlsClientAuth"/> | ||
/// </summary> | ||
[JsonProperty("tls_client_auth")] | ||
public TlsClientAuth TlsClientAuth { get; set; } | ||
|
||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.SelfSignedTlsClientAuth"/> | ||
/// </summary> | ||
[JsonProperty("self_signed_tls_client_auth")] | ||
public SelfSignedTlsClientAuth SelfSignedTlsClientAuth { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Defines private_key_jwt client authentication method. If this property is defined, | ||
/// the client is enabled to use the Private Key JWT authentication method. | ||
/// </summary> | ||
public class PrivateKeyJwt | ||
{ | ||
[JsonProperty("credentials")] | ||
public IList<CredentialId> Credentials { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Defines tls_client_auth client authentication method. If the property is defined, | ||
/// the client is configured to use CA-based mTLS authentication method. | ||
/// </summary> | ||
public class TlsClientAuth | ||
{ | ||
[JsonProperty("credentials")] | ||
public IList<CredentialId> Credentials { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Defines self_signed_tls_client_auth client authentication method. If the property is defined, | ||
/// the client is configured to use mTLS authentication method utilizing self-signed certificate. | ||
/// </summary> | ||
public class SelfSignedTlsClientAuth | ||
{ | ||
[JsonProperty("credentials")] | ||
public IList<CredentialId> Credentials { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Structure for a client's credential. | ||
/// </summary> | ||
/// <remarks> | ||
/// Only contains the credential's id. | ||
/// </remarks> | ||
public class CredentialId | ||
{ | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Defines the compliance level for this client, which may restrict it's capabilities | ||
/// </summary> | ||
public enum ComplianceLevel | ||
{ | ||
/// <summary> | ||
/// Compliance Level 'none' | ||
/// </summary> | ||
[EnumMember(Value = "none")] | ||
NONE, | ||
|
||
/// <summary> | ||
/// Compliance Level 'fapi1_adv_pkj_par' | ||
/// </summary> | ||
[EnumMember(Value = "fapi1_adv_pkj_par")] | ||
FAPI1_ADV_PKJ_PAR, | ||
|
||
/// <summary> | ||
/// Compliance Level 'fapi1_adv_mtls_par' | ||
/// </summary> | ||
[EnumMember(Value = "fapi1_adv_mtls_par")] | ||
FAPI1_ADV_MTLS_PAR | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
src/Auth0.ManagementApi/Models/Client/CreateClientAuthenticationMethods.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Structure for creating new client authentication methods | ||
/// </summary> | ||
public class CreateClientAuthenticationMethods | ||
{ | ||
[JsonProperty("private_key_jwt")] | ||
public CreatePrivateKeyJwt PrivateKeyJwt { get; set; } | ||
|
||
[JsonProperty("tls_client_auth")] | ||
public CreateTlsClientAuth TlsClientAuthMethod { get; set; } | ||
|
||
[JsonProperty("self_signed_tls_client_auth")] | ||
public CreateSelfSignedTlsClientAuth SelfSignedTlsClientAuthMethod { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Structure for creating a new client credential using Private Key JWT | ||
/// </summary> | ||
public class CreatePrivateKeyJwt | ||
{ | ||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.ClientCredentialCreateRequest"/> | ||
/// </summary> | ||
[JsonProperty("credentials")] | ||
public IList<ClientCredentialCreateRequest> Credentials { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Structure for creating a new client credential using TLS Client Auth. | ||
/// </summary> | ||
public class CreateTlsClientAuth | ||
{ | ||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.CreateTlsClientAuthCredentials"/> | ||
/// </summary> | ||
[JsonProperty("credentials")] | ||
public IList<CreateTlsClientAuthCredentials> Credentials { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Structure for creating a new client credential using Self Signed TLS Client Auth. | ||
/// </summary> | ||
public class CreateSelfSignedTlsClientAuth | ||
{ | ||
/// <summary> | ||
/// <inheritdoc cref="Auth0.ManagementApi.Models.CreateSelfSignedTlsClientAuthCredentials"/> | ||
/// </summary> | ||
[JsonProperty("credentials")] | ||
public IList<CreateSelfSignedTlsClientAuthCredentials> Credentials { get; set; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Auth0.ManagementApi/Models/Client/CreateSelfSignedTlsClientAuthCredentials.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Structure for creating a new client credential using Self Signed TLS Client Auth. | ||
/// </summary> | ||
public class CreateSelfSignedTlsClientAuthCredentials | ||
{ | ||
/// <summary> | ||
/// Possible values: [x509_cert] | ||
/// </summary> | ||
[JsonProperty("credential_type")] | ||
public string CredentialType { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the credential | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property. | ||
/// </summary> | ||
[JsonProperty("pem")] | ||
public string Pem { get; set; } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/Auth0.ManagementApi/Models/Client/CreateTlsClientAuthCredentials.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Structure for creating a new client credential using TLS Client Auth. | ||
/// </summary> | ||
public class CreateTlsClientAuthCredentials | ||
{ | ||
/// <summary> | ||
/// Possible values: [cert_subject_dn] | ||
/// </summary> | ||
[JsonProperty("credential_type")] | ||
public string CredentialType { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the credential | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property. | ||
/// </summary> | ||
[JsonProperty("pem")] | ||
public string Pem { get; set; } | ||
|
||
/// <summary> | ||
/// Subject Distinguished Name. Mutually exclusive with pem property. | ||
/// </summary> | ||
[JsonProperty("subject_dn")] | ||
public string SubjectDistinguishedName { get; set; } | ||
} | ||
} |
Oops, something went wrong.