Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit eb763ae

Browse files
do not require token signature by default
1 parent ead13bd commit eb763ae

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

global.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"sdk": {
33
"version": "5.0.100",
4-
"rollForward": "latestMajor"
4+
"rollForward": "latestMajor",
5+
"allowPrerelease": false
56
}
67
}

src/OidcClient/Policy.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class Policy
4242
/// <value>
4343
/// <c>true</c> if identity token must be signed; otherwise, <c>false</c>.
4444
/// </value>
45-
public bool RequireIdentityTokenSignature { get; set; } = true;
45+
public bool RequireIdentityTokenSignature { get; set; } = false;
4646

4747
/// <summary>
4848
/// Gets or sets a value indicating whether the identity token issuer name should match.

test/JwtValidationTests/CodeFlowResponseTestsWithJwtValidation.cs

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ public async Task Valid_response_with_missing_signature_should_succeed()
183183
[Fact]
184184
public async Task Valid_response_with_missing_signature_should_fail()
185185
{
186+
_options.Policy.RequireIdentityTokenSignature = true;
186187
var client = new OidcClient(_options);
187188
var state = await client.PrepareLoginAsync();
188189

0 commit comments

Comments
 (0)