Skip to content

Commit

Permalink
refactor(deps)!: adjusted code + tests major updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
granitdula committed Dec 29, 2023
1 parent 2e9c814 commit 247bb2c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 36 deletions.
3 changes: 2 additions & 1 deletion src/FactSet.SDK.Utils/FactSet.SDK.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
<ItemGroup>
<PackageReference Include="IdentityModel" Version="6.2.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.0.3" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Collections.Immutable" Version="7.0.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.32.3" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.0.3" />
<None Include="../../README.md" Pack="true" PackagePath="\" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,18 @@ public async Task CreateAsync_PassingConfigInvalidJwkEmptyStringValue_ThrowsConf
{
JsonWebKey jsonWebKey = new JsonWebKey(@"
{
'kty': '',
'use': '',
'alg': '',
'kid': '',
'd': '',
'n': '',
'e': '',
'p': '',
'q': '',
'dp': '',
'dq': '',
'qi': ''
""kty"": """",
""use"": """",
""alg"": """",
""kid"": """",
""d"": """",
""n"": """",
""e"": """",
""p"": """",
""q"": """",
""dp"": """",
""dq"": """",
""qi"": """"
}");
await ConfidentialClient.CreateAsync(
new Configuration("test", "test", jsonWebKey),
Expand Down
46 changes: 23 additions & 23 deletions tests/FactSet.SDK.Utils.Tests/Authentication/ConfigurationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@ public void Setup()

_validJwk = @"
{
'kty': 'test',
'use': 'test',
'alg': 'test',
'kid': 'test',
'd': 'test',
'n': 'test',
'e': 'AQAB',
'p': 'test',
'q': 'test',
'dp': 'test',
'dq': 'test',
'qi': 'test'
""kty"": ""test"",
""use"": ""test"",
""alg"": ""test"",
""kid"": ""test"",
""d"": ""test"",
""n"": ""test"",
""e"": ""AQAB"",
""p"": ""test"",
""q"": ""test"",
""dp"": ""test"",
""dq"": ""test"",
""qi"": ""test""
}";

_invalidJwkMissingKty = @"
{
'use': 'test',
'alg': 'test',
'kid': 'test',
'd': 'test',
'n': 'test',
'e': 'AQAB',
'p': 'test',
'q': 'test',
'dp': 'test',
'dq': 'test',
'qi': 'test'
""use"": ""test"",
""alg"": ""test"",
""kid"": ""test"",
""d"": ""test"",
""n"": ""test"",
""e"": ""AQAB"",
""p"": ""test"",
""q"": ""test"",
""dp"": ""test"",
""dq"": ""test"",
""qi"": ""test""
}";
}

Expand Down

0 comments on commit 247bb2c

Please sign in to comment.