-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for /guardian end-points (#771)
- Loading branch information
Showing
13 changed files
with
717 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
src/Auth0.ManagementApi/Models/Guardian/DuoConfiguration.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,16 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class DuoConfiguration | ||
{ | ||
[JsonProperty("ikey")] | ||
public string Ikey { get; set; } | ||
|
||
[JsonProperty("skey")] | ||
public string Skey { get; set; } | ||
|
||
[JsonProperty("host")] | ||
public string Host { get; set; } | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Auth0.ManagementApi/Models/Guardian/DuoConfigurationUpdateRequest.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,12 @@ | ||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class DuoConfigurationPatchRequest : DuoConfiguration | ||
{ | ||
|
||
} | ||
|
||
public class DuoConfigurationPutRequest : DuoConfiguration | ||
{ | ||
|
||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Auth0.ManagementApi/Models/Guardian/FcmConfiguration.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,18 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class FcmConfigurationUpdateRequestBase | ||
{ | ||
[JsonProperty("server_key")] | ||
public string ServerKey { get; set; } | ||
} | ||
|
||
public class FcmConfigurationPatchUpdateRequest : FcmConfigurationUpdateRequestBase | ||
{ | ||
} | ||
|
||
public class FcmConfigurationPutUpdateRequest : FcmConfigurationUpdateRequestBase | ||
{ | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Auth0.ManagementApi/Models/Guardian/FcmV1Configuration.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,18 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class FcmV1ConfigurationUpdateRequestBase | ||
{ | ||
[JsonProperty("server_credentials")] | ||
public string ServerCredentials { get; set; } | ||
} | ||
|
||
public class FcmV1ConfigurationPatchUpdateRequest : FcmV1ConfigurationUpdateRequestBase | ||
{ | ||
} | ||
|
||
public class FcmV1ConfigurationPutUpdateRequest : FcmV1ConfigurationUpdateRequestBase | ||
{ | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
src/Auth0.ManagementApi/Models/Guardian/GuardianPhoneEnrollmentTemplate.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,19 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class GuardianPhoneEnrollmentTemplate | ||
{ | ||
/// <summary> | ||
/// Message sent to the user when they are invited to enroll with a phone number. | ||
/// </summary> | ||
[JsonProperty("enrollment_message")] | ||
public string EnrollmentMessage { get; set; } | ||
|
||
/// <summary> | ||
/// Message sent to the user when they are prompted to verify their account. | ||
/// </summary> | ||
[JsonProperty("verification_message")] | ||
public string VerificationMessage { get; set; } | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Auth0.ManagementApi/Models/Guardian/PhoneProviderConfiguration.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,25 @@ | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class PhoneProviderConfiguration | ||
{ | ||
[JsonProperty("provider")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public Provider Provider { get; set; } | ||
} | ||
|
||
public enum Provider | ||
{ | ||
[EnumMember(Value = "auth0")] | ||
Auth0, | ||
|
||
[EnumMember(Value = "twilio")] | ||
Twilio, | ||
|
||
[EnumMember(Value = "phone-message-hook")] | ||
PhoneMessageHook, | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Auth0.ManagementApi/Models/Guardian/PushNotificationApnsConfiguration.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,25 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class PushNotificationApnsConfiguration | ||
{ | ||
[JsonProperty("bundle_id")] | ||
public string BundleId { get; set; } | ||
|
||
[JsonProperty("sandbox")] | ||
public bool? Sandbox { get; set; } | ||
|
||
[JsonProperty("enabled")] | ||
public bool? Enabled { get; set; } | ||
} | ||
|
||
public class PushNotificationApnsConfigurationUpdateResponse | ||
{ | ||
[JsonProperty("bundle_id")] | ||
public string BundleId { get; set; } | ||
|
||
[JsonProperty("sandbox")] | ||
public bool? Sandbox { get; set; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...Auth0.ManagementApi/Models/Guardian/PushNotificationApnsConfigurationUpdateRequestBase.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 | ||
{ | ||
public class PushNotificationApnsConfigurationUpdateRequestBase | ||
{ | ||
[JsonProperty("bundle_id")] | ||
public string BundleId { get; set; } | ||
|
||
[JsonProperty("sandbox")] | ||
public bool? Sandbox { get; set; } | ||
|
||
[JsonProperty("p12")] | ||
public string P12 { get; set; } | ||
} | ||
|
||
public class | ||
PushNotificationApnsConfigurationPatchUpdateRequest : PushNotificationApnsConfigurationUpdateRequestBase | ||
{ | ||
|
||
} | ||
|
||
public class | ||
PushNotificationApnsConfigurationPutUpdateRequest : PushNotificationApnsConfigurationUpdateRequestBase | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.