Skip to content

Commit 2afc0cb

Browse files
committed
feat: 新增JwtBearer库
1 parent 621fa2e commit 2afc0cb

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

Bing.All.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Logs.NLog", "framework
216216
EndProject
217217
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Validation", "framework\src\Bing.Validation\Bing.Validation.csproj", "{D1131EC5-CF40-418F-8E8C-858AADDBCC7F}"
218218
EndProject
219+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bing.AspNetCore.Authentication.JwtBearer", "framework\src\Bing.AspNetCore.Authentication.JwtBearer\Bing.AspNetCore.Authentication.JwtBearer.csproj", "{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28}"
220+
EndProject
219221
Global
220222
GlobalSection(SolutionConfigurationPlatforms) = preSolution
221223
Debug|Any CPU = Debug|Any CPU
@@ -478,6 +480,10 @@ Global
478480
{D1131EC5-CF40-418F-8E8C-858AADDBCC7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
479481
{D1131EC5-CF40-418F-8E8C-858AADDBCC7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
480482
{D1131EC5-CF40-418F-8E8C-858AADDBCC7F}.Release|Any CPU.Build.0 = Release|Any CPU
483+
{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
484+
{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28}.Debug|Any CPU.Build.0 = Debug|Any CPU
485+
{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28}.Release|Any CPU.ActiveCfg = Release|Any CPU
486+
{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28}.Release|Any CPU.Build.0 = Release|Any CPU
481487
EndGlobalSection
482488
GlobalSection(SolutionProperties) = preSolution
483489
HideSolutionNode = FALSE
@@ -572,6 +578,7 @@ Global
572578
{2C0C2E7B-25AC-4B48-AF62-59E3C5808AEC} = {F8BFB799-8ECB-49F6-AAA4-5B07F64DB3D9}
573579
{A073A8B8-C116-4D8E-A519-DF950F68D2DA} = {33F6CAB3-FD8A-4B91-9B94-A1E2DBC2759B}
574580
{D1131EC5-CF40-418F-8E8C-858AADDBCC7F} = {C6B2743E-B7EE-418C-9F9B-79976B71C46B}
581+
{7F4DAD82-FB09-445C-8EA2-0F1C50FBBA28} = {052D4342-8B65-4836-A9B6-681A7812760E}
575582
EndGlobalSection
576583
GlobalSection(ExtensibilityGlobals) = postSolution
577584
SolutionGuid = {C1202A0F-83CC-4602-BCE5-20CB640BCAD4}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="project.props" />
3+
4+
<Import Project="project.dependency.props" />
5+
6+
<Import Project="..\..\..\common.props" />
7+
8+
<ItemGroup>
9+
<Folder Include="Bing\AspNetCore\" />
10+
</ItemGroup>
11+
12+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Bing.Identity.JwtBearer.Abstractions
6+
{
7+
/// <summary>
8+
/// Jwy刷新令牌存储器
9+
/// </summary>
10+
public interface IRefreshTokenStore
11+
{
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project>
2+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.2.0" />
4+
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
5+
</ItemGroup>
6+
7+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
8+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="$(MicrosoftPackageVersion)" />
9+
</ItemGroup>
10+
11+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
12+
<DefineConstants>NETSTANDARD</DefineConstants>
13+
</PropertyGroup>
14+
15+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
16+
<DefineConstants>NETCOREAPP3_1</DefineConstants>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\Bing.Security\Bing.Security.csproj" />
21+
</ItemGroup>
22+
23+
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFrameworks>netstandard2.0;netcoreapp3.1;</TargetFrameworks>
4+
</PropertyGroup>
5+
6+
<PropertyGroup>
7+
<AssemblyName>Bing.AspNetCore.Authentication.JwtBearer</AssemblyName>
8+
<PackageId>Bing.AspNetCore.Authentication.JwtBearer</PackageId>
9+
<Description>Bing.AspNetCore.Authentication.JwtBearer 是Bing应用框架的基于Jwt授权类库。</Description>
10+
</PropertyGroup>
11+
12+
</Project>

0 commit comments

Comments
 (0)