-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Aguafrommars/user/ole
style: remove empty statement
- Loading branch information
Showing
8 changed files
with
115 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
30 changes: 30 additions & 0 deletions
30
src/Aguacongas.AspNetCore.Components.Maui.Authentication.Oidc/Models/AuthenticationEntity.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 |
---|---|---|
@@ -1,17 +1,47 @@ | ||
namespace Aguacongas.AspNetCore.Components.Maui.Authentication.Oidc.Models; | ||
|
||
/// <summary> | ||
/// Define an authentication | ||
/// </summary> | ||
public record AuthenticationEntity | ||
{ | ||
/// <summary> | ||
/// Collection of claims | ||
/// </summary> | ||
public IEnumerable<ClaimEntity> Claims { get; init; } | ||
|
||
/// <summary> | ||
/// Access token | ||
/// </summary> | ||
public string AccessToken { get; set; } | ||
|
||
/// <summary> | ||
/// Refresh token | ||
/// </summary> | ||
public string RefreshToken { get; set; } | ||
|
||
/// <summary> | ||
/// Identity token | ||
/// </summary> | ||
public string IdentityToken { get; set; } | ||
|
||
/// <summary> | ||
/// Access token expiration date | ||
/// </summary> | ||
public DateTimeOffset AccessTokenExpiration { get; set; } | ||
|
||
/// <summary> | ||
/// Type of authentication | ||
/// </summary> | ||
public string AuthenticationType { get; init; } | ||
|
||
/// <summary> | ||
/// Type of role claim | ||
/// </summary> | ||
public string RoleClaintType { get; init; } | ||
|
||
/// <summary> | ||
/// Type of name claim | ||
/// </summary> | ||
public string NameClaimType { get; init; } | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Aguacongas.AspNetCore.Components.Maui.Authentication.Oidc/Models/ClaimEntity.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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
namespace Aguacongas.AspNetCore.Components.Maui.Authentication.Oidc.Models; | ||
|
||
/// <summary> | ||
/// Define a claim | ||
/// </summary> | ||
public record ClaimEntity | ||
{ | ||
/// <summary> | ||
/// Claim type | ||
/// </summary> | ||
public string Type { get; init; } | ||
|
||
/// <summary> | ||
/// Claim value | ||
/// </summary> | ||
public string Value { get; init; } | ||
} |
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
Binary file added
BIN
+12.1 KB
src/Aguacongas.AspNetCore.Components.Maui.Authentication.Oidc/package-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.