-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
560550b
commit cc4f87f
Showing
11 changed files
with
105 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
// Copyright (c) Duende Software. All rights reserved. | ||
// See LICENSE in the project root for license information. | ||
|
||
namespace Duende.Bff.Blazor.Client; | ||
|
||
// TODO - Consider consolidating this and Duende.Bff.ClaimLite | ||
|
||
/// <summary> | ||
/// Serialization friendly claim | ||
/// Serialization friendly claim | ||
/// </summary> | ||
public class ClaimLite | ||
{ | ||
/// <summary> | ||
/// The type | ||
/// The type | ||
/// </summary> | ||
public string Type { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// The value | ||
/// The value | ||
/// </summary> | ||
public string Value { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// The value type | ||
/// The value type | ||
/// </summary> | ||
public string? ValueType { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
// Copyright (c) Duende Software. All rights reserved. | ||
// See LICENSE in the project root for license information. | ||
|
||
namespace Duende.Bff.Blazor.Client; | ||
|
||
/// <summary> | ||
/// Serialization friendly ClaimsPrincipal | ||
/// Serialization friendly ClaimsPrincipal | ||
/// </summary> | ||
public class ClaimsPrincipalLite | ||
{ | ||
/// <summary> | ||
/// The authentication type | ||
/// The authentication type | ||
/// </summary> | ||
public string? AuthenticationType { get; init; } | ||
|
||
/// <summary> | ||
/// The name claim type | ||
/// The name claim type | ||
/// </summary> | ||
public string? NameClaimType { get; init; } | ||
|
||
/// <summary> | ||
/// The role claim type | ||
/// The role claim type | ||
/// </summary> | ||
public string? RoleClaimType { get; init; } | ||
|
||
/// <summary> | ||
/// The claims | ||
/// The claims | ||
/// </summary> | ||
public ClaimLite[] Claims { get; init; } = default!; | ||
} | ||
} |
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
Oops, something went wrong.