File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
dsf-common/dsf-common-auth/src/main/java/dev/dsf/common/auth/logging Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ protected void before(OrganizationIdentity organization)
41
41
{
42
42
before ((Identity ) organization );
43
43
44
- organization .getCertificate ().map (this ::getThumbprint )
45
- .ifPresent (t -> MDC .pushByKey (DSF_ORGANIZATION_THUMBPRINT , t ));
44
+ organization .getCertificate ().map (this ::getThumbprint ).ifPresent (t -> MDC .put (DSF_ORGANIZATION_THUMBPRINT , t ));
46
45
organization .getCertificate ().map (X509Certificate ::getSubjectX500Principal ).map (X500Principal ::getName )
47
46
.ifPresent (d -> MDC .put (DSF_ORGANIZATION_DN , d ));
48
47
@@ -55,8 +54,7 @@ protected void before(PractitionerIdentity practitioner)
55
54
{
56
55
before ((Identity ) practitioner );
57
56
58
- practitioner .getCertificate ().map (this ::getThumbprint )
59
- .ifPresent (t -> MDC .pushByKey (DSF_PRACTITIONER_THUMBPRINT , t ));
57
+ practitioner .getCertificate ().map (this ::getThumbprint ).ifPresent (t -> MDC .put (DSF_PRACTITIONER_THUMBPRINT , t ));
60
58
practitioner .getCertificate ().map (X509Certificate ::getSubjectX500Principal ).map (X500Principal ::getName )
61
59
.ifPresent (d -> MDC .put (DSF_PRACTITIONER_DN , d ));
62
60
practitioner .getCredentials ().map (DsfOpenIdCredentials ::getUserId )
You can’t perform that action at this time.
0 commit comments