Skip to content

Commit c4af605

Browse files
committed
test: shet ShowPII to true
1 parent 248a9ca commit c4af605

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/IdentityServer4/test/IdentityServer.UnitTests/Extensions/IdentityServerBuilderExtensionsCryptoTests.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

44

55
using IdentityServer4;
66
using IdentityServer4.Configuration;
77
using Microsoft.Extensions.DependencyInjection;
8+
using Microsoft.IdentityModel.Logging;
89
using Microsoft.IdentityModel.Tokens;
910
using System;
1011
using System.IO;
@@ -21,7 +22,9 @@ public void AddSigningCredential_with_json_web_key_containing_asymmetric_key_sho
2122
IServiceCollection services = new ServiceCollection();
2223
IIdentityServerBuilder identityServerBuilder = new IdentityServerBuilder(services);
2324

24-
String json =
25+
IdentityModelEventSource.ShowPII = true;
26+
27+
var json =
2528
@"{
2629
""alg"" : ""RS256"",
2730
""kty"" : ""RSA"",
@@ -36,8 +39,8 @@ public void AddSigningCredential_with_json_web_key_containing_asymmetric_key_sho
3639
""qi"" : ""w4KdmiDN1GtK71JxaasqmEKPNfV3v2KZDXKnfyhUsdx/idKbdTVjvMOkxFPJ4FqV4yIVn06f3QHTm4NEG18Diqxsrzd6kXQIHOa858tLsCcmt9FoGfrgCFgVceh3K/Zah/r8rl9Y61u0Z1kZumwMvFpFE+mVU01t9HgTEAVkHTc="",
3740
}";
3841

39-
JsonWebKey jsonWebKey = new JsonWebKey(json);
40-
SigningCredentials credentials = new SigningCredentials(jsonWebKey, jsonWebKey.Alg);
42+
var jsonWebKey = new JsonWebKey(json);
43+
var credentials = new SigningCredentials(jsonWebKey, jsonWebKey.Alg);
4144
identityServerBuilder.AddSigningCredential(credentials);
4245
}
4346

0 commit comments

Comments
 (0)