-
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.
Merge pull request #638 from Laixer/develop
v3.5.1
- Loading branch information
Showing
39 changed files
with
1,256 additions
and
1,260 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
25 changes: 12 additions & 13 deletions
25
src/FunderMaps.AspNetCore/Authentication/FunderMapsAuthenticationClaimTypes.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,18 +1,17 @@ | ||
namespace FunderMaps.AspNetCore.Authentication | ||
namespace FunderMaps.AspNetCore.Authentication; | ||
|
||
/// <summary> | ||
/// FunderMaps claim types. | ||
/// </summary> | ||
public static class FunderMapsAuthenticationClaimTypes | ||
{ | ||
/// <summary> | ||
/// FunderMaps claim types. | ||
/// FunderMaps tenant claim type. | ||
/// </summary> | ||
public static class FunderMapsAuthenticationClaimTypes | ||
{ | ||
/// <summary> | ||
/// FunderMaps tenant claim type. | ||
/// </summary> | ||
public const string Tenant = "cfo"; | ||
public const string Tenant = "cfo"; | ||
|
||
/// <summary> | ||
/// FunderMaps tenant role claim type. | ||
/// </summary> | ||
public const string TenantRole = "cfor"; | ||
} | ||
/// <summary> | ||
/// FunderMaps tenant role claim type. | ||
/// </summary> | ||
public const string TenantRole = "cfor"; | ||
} |
33 changes: 16 additions & 17 deletions
33
src/FunderMaps.AspNetCore/Authentication/ISecurityTokenProvider.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,25 +1,24 @@ | ||
using Microsoft.IdentityModel.Tokens; | ||
using System.Security.Claims; | ||
|
||
namespace FunderMaps.AspNetCore.Authentication | ||
namespace FunderMaps.AspNetCore.Authentication; | ||
|
||
/// <summary> | ||
/// Security token provider. | ||
/// </summary> | ||
public interface ISecurityTokenProvider | ||
{ | ||
/// <summary> | ||
/// Security token provider. | ||
/// Generate token. | ||
/// </summary> | ||
public interface ISecurityTokenProvider | ||
{ | ||
/// <summary> | ||
/// Generate token. | ||
/// </summary> | ||
/// <param name="principal">Claims principal.</param> | ||
/// <returns>Instance of <see cref="SecurityToken"/>.</returns> | ||
SecurityToken GetToken(ClaimsPrincipal principal); | ||
/// <param name="principal">Claims principal.</param> | ||
/// <returns>Instance of <see cref="SecurityToken"/>.</returns> | ||
SecurityToken GetToken(ClaimsPrincipal principal); | ||
|
||
/// <summary> | ||
/// Generate token. | ||
/// </summary> | ||
/// <param name="principal">Claims principal.</param> | ||
/// <returns>Instance of <see cref="TokenContext"/>.</returns> | ||
TokenContext GetTokenContext(ClaimsPrincipal principal); | ||
} | ||
/// <summary> | ||
/// Generate token. | ||
/// </summary> | ||
/// <param name="principal">Claims principal.</param> | ||
/// <returns>Instance of <see cref="TokenContext"/>.</returns> | ||
TokenContext GetTokenContext(ClaimsPrincipal principal); | ||
} |
Oops, something went wrong.