-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AuthenticateAsync returns AuthResult when is successful
- Loading branch information
Showing
3 changed files
with
37 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace CleanDDDArchitecture.Domains.Account.Core.Identity.Dto; | ||
|
||
/// <summary> | ||
/// Represents the result of an authentication operation. | ||
/// </summary> | ||
public class AuthResult | ||
{ | ||
/// <summary> | ||
/// Gets or sets the token type. | ||
/// Typically "Bearer" in OAuth2. | ||
/// </summary> | ||
public string TokenType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the serialized access token. | ||
/// This token is used for authenticating subsequent requests. | ||
/// </summary> | ||
public string AccessToken { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the number of seconds until the access token expires. | ||
/// This is typically used by clients to know when to refresh the token. | ||
/// </summary> | ||
public long ExpiresIn { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the serialized refresh token. | ||
/// This token is used to obtain a new access token once the current one expires. | ||
/// </summary> | ||
public string RefreshToken { 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