修改接口
This commit is contained in:
79
TestJwtValidation/Program.cs
Normal file
79
TestJwtValidation/Program.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Text;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace TestJwtValidation
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIyMSIsInVuaXF1ZV9uYW1lIjoic3RyaW5nIiwiZW1haWwiOiJ1c2VyQGV4YW1wbGUuY29tIiwibmJmIjoxNzYwNTk3MTA5LCJleHAiOjE3NjA2MDA3MDksImlhdCI6MTc2MDU5NzEwOSwiaXNzIjoiRnV0dXJlTWFpbEFQSSIsImF1ZCI6IkZ1dHVyZU1haWxDbGllbnQifQ.u-flaJioXuZfU_b-hD8_x5-gH0e9t_AkScQKOKIsAqE";
|
||||
|
||||
try
|
||||
{
|
||||
var tokenHandler = new JwtSecurityTokenHandler();
|
||||
var jwtSettings = new
|
||||
{
|
||||
Key = "ThisIsASecretKeyForJWTTokenGenerationAndValidation123456789",
|
||||
Issuer = "FutureMailAPI",
|
||||
Audience = "FutureMailClient"
|
||||
};
|
||||
|
||||
var key = Encoding.ASCII.GetBytes(jwtSettings.Key);
|
||||
|
||||
var validationParameters = new TokenValidationParameters
|
||||
{
|
||||
ValidateIssuerSigningKey = true,
|
||||
IssuerSigningKey = new SymmetricSecurityKey(key),
|
||||
ValidateIssuer = true,
|
||||
ValidIssuer = jwtSettings.Issuer,
|
||||
ValidateAudience = true,
|
||||
ValidAudience = jwtSettings.Audience,
|
||||
ValidateLifetime = true,
|
||||
ClockSkew = TimeSpan.Zero
|
||||
};
|
||||
|
||||
// 验证JWT令牌
|
||||
var principal = tokenHandler.ValidateToken(token, validationParameters, out SecurityToken validatedToken);
|
||||
|
||||
Console.WriteLine("令牌验证成功!");
|
||||
Console.WriteLine($"令牌类型: {validatedToken.GetType().Name}");
|
||||
|
||||
// 检查所有Claims
|
||||
Console.WriteLine("\n所有Claims:");
|
||||
foreach (var claim in principal.Claims)
|
||||
{
|
||||
Console.WriteLine($"类型: {claim.Type}, 值: {claim.Value}");
|
||||
}
|
||||
|
||||
// 检查特定Claim
|
||||
var nameIdClaim = principal.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier);
|
||||
Console.WriteLine($"\nNameIdentifier Claim: {nameIdClaim?.Value ?? "未找到"}");
|
||||
|
||||
var userId = 0;
|
||||
if (nameIdClaim != null && int.TryParse(nameIdClaim.Value, out userId))
|
||||
{
|
||||
Console.WriteLine($"解析的用户ID: {userId}");
|
||||
}
|
||||
}
|
||||
catch (SecurityTokenExpiredException)
|
||||
{
|
||||
Console.WriteLine("令牌已过期");
|
||||
}
|
||||
catch (SecurityTokenInvalidSignatureException)
|
||||
{
|
||||
Console.WriteLine("令牌签名无效");
|
||||
}
|
||||
catch (SecurityTokenException ex)
|
||||
{
|
||||
Console.WriteLine($"令牌验证失败: {ex.Message}");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"发生错误: {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
TestJwtValidation/TestJwtValidation.csproj
Normal file
14
TestJwtValidation/TestJwtValidation.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.0.3" />
|
||||
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
115
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.deps.json
Normal file
115
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.deps.json
Normal file
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"TestJwtValidation/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": "7.0.3",
|
||||
"System.IdentityModel.Tokens.Jwt": "7.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"TestJwtValidation.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Abstractions/7.0.3": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.3.0",
|
||||
"fileVersion": "7.0.3.41017"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/7.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": "7.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"assemblyVersion": "7.0.3.0",
|
||||
"fileVersion": "7.0.3.41017"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/7.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Abstractions": "7.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"assemblyVersion": "7.0.3.0",
|
||||
"fileVersion": "7.0.3.41017"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/7.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Logging": "7.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"assemblyVersion": "7.0.3.0",
|
||||
"fileVersion": "7.0.3.41017"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt/7.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.JsonWebTokens": "7.0.3",
|
||||
"Microsoft.IdentityModel.Tokens": "7.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": {
|
||||
"assemblyVersion": "7.0.3.0",
|
||||
"fileVersion": "7.0.3.41017"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"TestJwtValidation/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Microsoft.IdentityModel.Abstractions/7.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==",
|
||||
"path": "microsoft.identitymodel.abstractions/7.0.3",
|
||||
"hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/7.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==",
|
||||
"path": "microsoft.identitymodel.jsonwebtokens/7.0.3",
|
||||
"hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/7.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==",
|
||||
"path": "microsoft.identitymodel.logging/7.0.3",
|
||||
"hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/7.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==",
|
||||
"path": "microsoft.identitymodel.tokens/7.0.3",
|
||||
"hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512"
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt/7.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==",
|
||||
"path": "system.identitymodel.tokens.jwt/7.0.3",
|
||||
"hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.dll
Normal file
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.dll
Normal file
Binary file not shown.
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.exe
Normal file
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.exe
Normal file
Binary file not shown.
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.pdb
Normal file
BIN
TestJwtValidation/bin/Debug/net9.0/TestJwtValidation.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("TestJwtValidation")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+82220ce0b8407f301797c542e77ba99de08087f0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("TestJwtValidation")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("TestJwtValidation")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
4488055f59c6b731b28c476383435111f0ebf2d856e150d9f4925b4e1620fa02
|
||||
@@ -0,0 +1,17 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = TestJwtValidation
|
||||
build_property.ProjectDir = C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
9f0e48ca59e6dbdbab0f8c4e3426a6608c93cf7aa6ff7c8a63690884dd9eadf5
|
||||
@@ -0,0 +1,21 @@
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\TestJwtValidation.exe
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\TestJwtValidation.deps.json
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\TestJwtValidation.runtimeconfig.json
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\TestJwtValidation.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\TestJwtValidation.pdb
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\Microsoft.IdentityModel.Abstractions.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\Microsoft.IdentityModel.JsonWebTokens.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\Microsoft.IdentityModel.Logging.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\Microsoft.IdentityModel.Tokens.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\bin\Debug\net9.0\System.IdentityModel.Tokens.Jwt.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.csproj.AssemblyReference.cache
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.AssemblyInfoInputs.cache
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.AssemblyInfo.cs
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.csproj.CoreCompileInputs.cache
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtV.0485C07E.Up2Date
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\refint\TestJwtValidation.dll
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.pdb
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\TestJwtValidation.genruntimeconfig.cache
|
||||
C:\Users\Administrator\Desktop\快乐转盘\未来邮箱02APi\TestJwtValidation\obj\Debug\net9.0\ref\TestJwtValidation.dll
|
||||
BIN
TestJwtValidation/obj/Debug/net9.0/TestJwtValidation.dll
Normal file
BIN
TestJwtValidation/obj/Debug/net9.0/TestJwtValidation.dll
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
73597a4153f183375dcbc45d28d631719939de5cc7b33fdba22eb09d09ee72ff
|
||||
BIN
TestJwtValidation/obj/Debug/net9.0/TestJwtValidation.pdb
Normal file
BIN
TestJwtValidation/obj/Debug/net9.0/TestJwtValidation.pdb
Normal file
Binary file not shown.
BIN
TestJwtValidation/obj/Debug/net9.0/apphost.exe
Normal file
BIN
TestJwtValidation/obj/Debug/net9.0/apphost.exe
Normal file
Binary file not shown.
BIN
TestJwtValidation/obj/Debug/net9.0/ref/TestJwtValidation.dll
Normal file
BIN
TestJwtValidation/obj/Debug/net9.0/ref/TestJwtValidation.dll
Normal file
Binary file not shown.
BIN
TestJwtValidation/obj/Debug/net9.0/refint/TestJwtValidation.dll
Normal file
BIN
TestJwtValidation/obj/Debug/net9.0/refint/TestJwtValidation.dll
Normal file
Binary file not shown.
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj",
|
||||
"projectName": "TestJwtValidation",
|
||||
"projectPath": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj",
|
||||
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.3, )"
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.3, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.100-rc.1.25451.107/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
TestJwtValidation/obj/TestJwtValidation.csproj.nuget.g.props
Normal file
16
TestJwtValidation/obj/TestJwtValidation.csproj.nuget.g.props
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Administrator\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Administrator\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
288
TestJwtValidation/obj/project.assets.json
Normal file
288
TestJwtValidation/obj/project.assets.json
Normal file
@@ -0,0 +1,288 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {
|
||||
"Microsoft.IdentityModel.Abstractions/7.0.3": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/7.0.3": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": "7.0.3"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/7.0.3": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Abstractions": "7.0.3"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/7.0.3": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Logging": "7.0.3"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt/7.0.3": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.JsonWebTokens": "7.0.3",
|
||||
"Microsoft.IdentityModel.Tokens": "7.0.3"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Microsoft.IdentityModel.Abstractions/7.0.3": {
|
||||
"sha512": "cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.abstractions/7.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net461/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net462/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512",
|
||||
"microsoft.identitymodel.abstractions.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/7.0.3": {
|
||||
"sha512": "vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.jsonwebtokens/7.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net461/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net462/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512",
|
||||
"microsoft.identitymodel.jsonwebtokens.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/7.0.3": {
|
||||
"sha512": "b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.logging/7.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net461/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net462/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"microsoft.identitymodel.logging.7.0.3.nupkg.sha512",
|
||||
"microsoft.identitymodel.logging.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/7.0.3": {
|
||||
"sha512": "wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.tokens/7.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net461/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net462/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"microsoft.identitymodel.tokens.7.0.3.nupkg.sha512",
|
||||
"microsoft.identitymodel.tokens.nuspec"
|
||||
]
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt/7.0.3": {
|
||||
"sha512": "caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==",
|
||||
"type": "package",
|
||||
"path": "system.identitymodel.tokens.jwt/7.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net461/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/net461/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"lib/net462/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/net462/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"lib/net472/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/net472/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"lib/net6.0/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/net6.0/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"lib/net8.0/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/net8.0/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"lib/netstandard2.0/System.IdentityModel.Tokens.Jwt.dll",
|
||||
"lib/netstandard2.0/System.IdentityModel.Tokens.Jwt.xml",
|
||||
"system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512",
|
||||
"system.identitymodel.tokens.jwt.nuspec"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": [
|
||||
"Microsoft.IdentityModel.Tokens >= 7.0.3",
|
||||
"System.IdentityModel.Tokens.Jwt >= 7.0.3"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\": {},
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj",
|
||||
"projectName": "TestJwtValidation",
|
||||
"projectPath": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj",
|
||||
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.3, )"
|
||||
},
|
||||
"System.IdentityModel.Tokens.Jwt": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.3, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.100-rc.1.25451.107/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
TestJwtValidation/obj/project.nuget.cache
Normal file
14
TestJwtValidation/obj/project.nuget.cache
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "gUWAcxOqzkY=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\Administrator\\Desktop\\快乐转盘\\未来邮箱02APi\\TestJwtValidation\\TestJwtValidation.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.identitymodel.abstractions\\7.0.3\\microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512",
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\7.0.3\\microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512",
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.identitymodel.logging\\7.0.3\\microsoft.identitymodel.logging.7.0.3.nupkg.sha512",
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\microsoft.identitymodel.tokens\\7.0.3\\microsoft.identitymodel.tokens.7.0.3.nupkg.sha512",
|
||||
"C:\\Users\\Administrator\\.nuget\\packages\\system.identitymodel.tokens.jwt\\7.0.3\\system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
Reference in New Issue
Block a user