-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from EAVFW/ssp/entraidFunctionality
feat: Added support for .net8
- Loading branch information
Showing
4 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...FW.Extensions.EasyAuth.MicrosoftEntraId/EAVFW.Extensions.EasyAuth.MicrosoftEntraId.csproj
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
8 changes: 3 additions & 5 deletions
8
src/EAVFW.Extensions.EasyAuth.MicrosoftEntraId/MicrosoftEntraIdEasyAuthOptions.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,23 +1,21 @@ | ||
using IdentityModel.Client; | ||
using Microsoft.AspNetCore.Http; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Security.Claims; | ||
using System.Threading.Tasks; | ||
|
||
namespace EAVFW.Extensions.EasyAuth.MicrosoftEntraId | ||
{ | ||
public class MicrosoftEntraIdEasyAuthOptions | ||
{ | ||
public string AuthorizationUrl { get; set; } | ||
public string ClientId { get; set; } | ||
public string ClientSecret { get; set; } | ||
public string TenantId { get; set; } | ||
public string GroupId { get; set; } | ||
public string Scope { get; set; } | ||
public string TokenEndpoint { get; set; } | ||
public string RedirectUrl { get; set; } | ||
|
||
|
||
public Func<HttpContext, string> GetMicrosoftAuthorizationUrl { get; set; } | ||
public Func<HttpContext, string> GetMicrosoftTokenEndpoint { get; set; } | ||
public Func<HttpContext, string, TokenResponse, Task<ClaimsPrincipal>> ValidateUserAsync { get; set; } | ||
} | ||
} |