Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to select serializer #433

Merged
merged 48 commits into from
Sep 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8b25f5f
First take
Aug 25, 2022
f94fc90
added some tests
Aug 25, 2022
81af0db
Update JwtBuilderEncodeTests.cs
abatishchev Aug 26, 2022
73fe125
Update JwtEncoderTests.cs
abatishchev Aug 26, 2022
1ee6b46
bumped version
Aug 26, 2022
c1a5b3c
Added assert to test and method to the JsonSerializerFactory
Aug 26, 2022
1c4421b
Lowered target framework for .net40 test so we get net461 so it uses …
hartmark Aug 27, 2022
d4a5163
Fix test running in mono (.net framework on linux)
hartmark Aug 27, 2022
2b89f9c
made JsonSerializerFactory non-static
Aug 28, 2022
a6b8fa6
Update and rename JsonSerializerFactory.cs to DefaultJsonSerializerFa…
abatishchev Sep 8, 2022
b5b2e3c
Create IJsonSerializerFactory.cs
abatishchev Sep 8, 2022
6f57e14
Update IJsonSerializerFactory.cs
abatishchev Sep 8, 2022
c1c8171
Update DefaultJsonSerializerFactory.cs
abatishchev Sep 8, 2022
2f51d22
Create DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
52a22c1
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
2a994f7
Update ServiceCollectionExtensions.cs
abatishchev Sep 8, 2022
6d933cd
Update JwtBuilder.cs
abatishchev Sep 8, 2022
15b6952
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
171ac0a
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
b21bb1f
Update DelegateAlgorithmFactory.cs
abatishchev Sep 8, 2022
c8001a7
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
bd57102
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
f5db345
Update DefaultJsonSerializerFactory.cs
abatishchev Sep 8, 2022
ffc16cc
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
b7713ce
Update DelegateJsonSerializerFactory.cs
abatishchev Sep 8, 2022
7f6fc45
Update JwtBuilder.cs
abatishchev Sep 8, 2022
024265d
Update JwtBuilder.cs
abatishchev Sep 8, 2022
9945642
Update JwtBuilderEncodeTests.cs
abatishchev Sep 8, 2022
cf59026
Update JwtDecoderTests.cs
abatishchev Sep 8, 2022
b9e0d92
Update SerializerTests.cs
abatishchev Sep 8, 2022
5437103
Update JwtEncoderTests.cs
abatishchev Sep 8, 2022
b604fac
Update SerializerTests.cs
abatishchev Sep 8, 2022
82fe9c5
Update JwtBuilder.cs
abatishchev Sep 8, 2022
adc1d66
Update JwtBuilder.cs
abatishchev Sep 8, 2022
dd65918
Update and rename SerializerTests.cs to DefaultJsonSerializerFactoryT…
abatishchev Sep 8, 2022
b7a9cea
Update JwtValidatorTests.cs
abatishchev Sep 8, 2022
8d314cd
Update DefaultJsonSerializerFactory.cs
abatishchev Sep 8, 2022
54299a5
Update DefaultJsonSerializerFactoryTests.cs
abatishchev Sep 8, 2022
da82a6c
Update JwtBuilderEncodeTests.cs
abatishchev Sep 8, 2022
027cb83
Update JwtBuilderDecodeTests.cs
abatishchev Sep 8, 2022
bf981de
Update JwtValidatorTests.cs
abatishchev Sep 8, 2022
d7bf51e
Update JwtSecurityTests.cs
abatishchev Sep 8, 2022
440da08
Update JwtBuilderDecodeTests.cs
abatishchev Sep 8, 2022
888c0c1
Update JwtAuthenticationHandlerTests.cs
abatishchev Sep 8, 2022
42155c8
Update JwtBuilderDecodeTests.cs
abatishchev Sep 8, 2022
2780209
Update JwtAuthenticationHandlerTests.cs
abatishchev Sep 8, 2022
fa7c10a
Update ServiceCollectionExtensions.cs
abatishchev Sep 8, 2022
4f18830
Update ServiceCollectionExtensions.cs
abatishchev Sep 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SerializerTests.cs
abatishchev authored Sep 8, 2022
commit b604fac14d4b0509f323371b44e301d92762c1bf
5 changes: 3 additions & 2 deletions tests/JWT.Tests.Common/SerializerTests.cs
Original file line number Diff line number Diff line change
@@ -36,8 +36,9 @@ public void Serializer_Should_Use_Correct_Default()
/// <returns>The running dotnet version.</returns>
private string GetRunningDotnetVersion() =>
Assembly.GetExecutingAssembly()
.GetCustomAttributes<TargetFrameworkAttribute>()
.SingleOrDefault()
.GetCustomAttributes(typeof(TargetFrameworkAttribute), false)
.Cast<TargetFrameworkAttribute>()
.Single()
?.FrameworkName;
}
}