-
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.
Add Organizations in Client Credentials (#673)
- Loading branch information
1 parent
1af6684
commit 6990db6
Showing
14 changed files
with
373 additions
and
5 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
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
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,32 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class OrganizationClientGrant | ||
{ | ||
/// <summary> | ||
/// Gets or sets the identifier for a Client Grant. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the audience | ||
/// </summary> | ||
[JsonProperty("audience")] | ||
public string Audience { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the identifier of the <see cref="Client"/> | ||
/// </summary> | ||
[JsonProperty("client_id")] | ||
public string ClientId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the list of scopes | ||
/// </summary> | ||
[JsonProperty("scope")] | ||
public List<string> Scope { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Auth0.ManagementApi/Models/OrganizationCreateClientGrantRequest.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,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class OrganizationCreateClientGrantRequest | ||
{ | ||
/// <summary> | ||
/// A Client Grant ID to add to the organization. | ||
/// </summary> | ||
[JsonProperty("grant_id")] | ||
public string GrantId { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Auth0.ManagementApi/Models/OrganizationGetClientGrantsRequest.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,15 @@ | ||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class OrganizationGetClientGrantsRequest | ||
{ | ||
/// <summary> | ||
/// URL Encoded audience of a client grant to filter. | ||
/// </summary> | ||
public string Audience { get; set; } | ||
|
||
/// <summary> | ||
/// The Id of a client to filter by. | ||
/// </summary> | ||
public string ClientId { get; set; } | ||
} | ||
} |
Oops, something went wrong.