-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for managing user refresh-tokens and user sessions
- Loading branch information
Showing
6 changed files
with
191 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
using Auth0.ManagementApi.Models.RefreshTokens; | ||
|
||
namespace Auth0.ManagementApi.Models.Users | ||
{ | ||
/// <summary> | ||
/// User's Refresh Tokens | ||
/// </summary> | ||
public class UserRefreshTokens | ||
{ | ||
/// <summary> | ||
/// List of <see cref="RefreshTokenInformation"/> | ||
/// </summary> | ||
public IList<RefreshTokenInformation> Tokens { get; set; } | ||
|
||
/// <summary> | ||
/// The maximum token ID of the current result set, to be used as the "from" query parameter for the next call. | ||
/// </summary> | ||
public string Next { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Auth0.ManagementApi/Models/Users/UserRefreshTokensGetRequest.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 @@ | ||
namespace Auth0.ManagementApi.Models.Users | ||
{ | ||
/// <summary> | ||
/// Represents the information required to Get User Refresh Tokens | ||
/// </summary> | ||
public class UserRefreshTokensGetRequest | ||
{ | ||
/// <summary> | ||
/// Id of the user to get refresh tokens for | ||
/// </summary> | ||
public string UserId { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Auth0.ManagementApi/Models/Users/UserSessionsGetRequest.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 @@ | ||
namespace Auth0.ManagementApi.Models.Users | ||
{ | ||
/// <summary> | ||
/// Represents the information required to Get User's sessions | ||
/// </summary> | ||
public class UserSessionsGetRequest | ||
{ | ||
/// <summary> | ||
/// Id of the user to get sessions for | ||
/// </summary> | ||
public string UserId { 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