-
Notifications
You must be signed in to change notification settings - Fork 179
Adds support to manage Native to SSO configuration on clients #885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
32 changes: 32 additions & 0 deletions
32
src/Auth0.ManagementApi/Models/Client/DeviceBindingType.cs
This file contains hidden or 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,32 @@ | ||
| using System.Runtime.Serialization; | ||
|
|
||
| namespace Auth0.ManagementApi.Models; | ||
|
|
||
| /// <summary> | ||
| /// Indicates whether device binding security should be enforced for the app. | ||
| /// If set to 'ip', the app will enforce device binding by IP, meaning that consumption of session_token must be | ||
| /// done from the same IP of the issuer. Likewise, if set to 'asn', device binding is enforced by ASN, meaning | ||
| /// consumption of session_token must be done from the same ASN as the issuer. | ||
| /// If set to 'null', device binding is not enforced. | ||
| /// </summary> | ||
| public enum DeviceBindingType | ||
| { | ||
| /// <summary> | ||
| /// Ip | ||
| /// </summary> | ||
| [EnumMember(Value = "ip")] | ||
| Ip, | ||
|
|
||
| /// <summary> | ||
| /// Asn | ||
| /// </summary> | ||
| [EnumMember(Value = "asn")] | ||
| Asn, | ||
|
|
||
| /// <summary> | ||
| /// None | ||
| /// </summary> | ||
| [EnumMember(Value = "none")] | ||
| None, | ||
|
|
||
| } |
This file contains hidden or 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 Newtonsoft.Json; | ||
| using Newtonsoft.Json.Converters; | ||
|
|
||
| namespace Auth0.ManagementApi.Models; | ||
|
|
||
| /// <summary> | ||
| /// Native to Web SSO configuration. | ||
| /// </summary> | ||
| public class SessionTransfer | ||
| { | ||
| /// <summary> | ||
| /// Indicates whether an app can issue a session_token through Token Exchange. | ||
| /// If set to 'false', the app will not be able to issue a session_token. | ||
| /// </summary> | ||
| [JsonProperty("can_create_session_transfer_token")] | ||
| public bool? CanCreateSessionTransferToken { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Indicates whether an app can create a session from a session_token received via indicated methods. | ||
| /// </summary> | ||
| [JsonProperty("allowed_authentication_methods")] | ||
| public string[]? AllowedAuthenticationMethods { get; set; } | ||
kailash-b marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /// <summary> | ||
| /// Indicates whether device binding security should be enforced for the app. | ||
| /// If set to 'ip', the app will enforce device binding by IP, meaning that consumption of session_token must be | ||
| /// done from the same IP of the issuer. | ||
| /// Likewise, if set to 'asn', device binding is enforced by ASN, meaning consumption of session_token must be | ||
| /// done from the same ASN as the issuer. | ||
| /// If set to 'null', device binding is not enforced. | ||
| /// </summary> | ||
| /// <remarks>Possible values: [ip, asn, none]</remarks> | ||
| [JsonConverter(typeof(StringEnumConverter))] | ||
| [JsonProperty("enforce_device_binding")] | ||
| public DeviceBindingType? EnforceDeviceBinding { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Indicates whether Refresh Tokens are allowed to be issued when authenticating with a session_transfer_token. | ||
| /// </summary> | ||
| [JsonProperty("allow_refresh_token")] | ||
| public bool? AllowRefreshToken { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Indicates whether Refresh Tokens created during a native-to-web session are tied to that session's lifetime. | ||
| /// This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. | ||
| /// </summary> | ||
| [JsonProperty("enforce_online_refresh_tokens")] | ||
| public bool? EnforceOnlineRefreshTokens { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue | ||
| /// a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. | ||
| /// </summary> | ||
| [JsonProperty("enforce_cascade_revocation")] | ||
| public bool? EnforceCascadeRevocation { get; set; } | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.