[java-idp-oidc] 01/02: Logging improvements.
Codeberg
noreply at shibboleth.net
Thu Nov 26 07:22:17 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-oidc.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-oidc/commit/56de26c6016cc14544f06c56c96536cab8965516
commit 56de26c6016cc14544f06c56c96536cab8965516
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Wed Nov 25 19:11:57 2026 +0200
Logging improvements.
---
.../shibboleth/idp/plugin/oidc/op/token/support/TokenClaimsSet.java | 2 +-
.../op/metadata/impl/DynamicFilesystemProviderMetadataResolver.java | 2 +-
.../net/shibboleth/idp/plugin/oidc/op/profile/impl/RevokeConsent.java | 2 +-
.../idp/plugin/oidc/op/profile/impl/SetConsentToResponseContext.java | 2 +-
.../net/shibboleth/idp/plugin/oidc/op/profile/impl/ValidatePKCE.java | 3 +--
5 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/idp-oidc-extension-api/src/main/java/net/shibboleth/idp/plugin/oidc/op/token/support/TokenClaimsSet.java b/idp-oidc-extension-api/src/main/java/net/shibboleth/idp/plugin/oidc/op/token/support/TokenClaimsSet.java
index 8f0a7292..286c6fff 100644
--- a/idp-oidc-extension-api/src/main/java/net/shibboleth/idp/plugin/oidc/op/token/support/TokenClaimsSet.java
+++ b/idp-oidc-extension-api/src/main/java/net/shibboleth/idp/plugin/oidc/op/token/support/TokenClaimsSet.java
@@ -379,7 +379,7 @@ public class TokenClaimsSet {
return new URI(assertedClaimsSet().getStringClaim(KEY_REDIRECT_URI));
}
} catch (final ParseException|IllegalArgumentException | URISyntaxException e) {
- log.error("error parsing redirect uri from token", e.getMessage());
+ log.error("error parsing redirect uri from token: {}", e.getMessage());
}
// should never happen, programming error.
return null;
diff --git a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/metadata/impl/DynamicFilesystemProviderMetadataResolver.java b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/metadata/impl/DynamicFilesystemProviderMetadataResolver.java
index 938c7d49..433f24aa 100644
--- a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/metadata/impl/DynamicFilesystemProviderMetadataResolver.java
+++ b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/metadata/impl/DynamicFilesystemProviderMetadataResolver.java
@@ -110,7 +110,7 @@ public class DynamicFilesystemProviderMetadataResolver extends FilesystemProvide
log.debug("The field {} updated to the result", key);
}
} catch (final ResolverException e) {
- log.warn("Could not resolve a value for {̛}, ignoring it.", key, e);
+ log.warn("Could not resolve a value for {}, ignoring it.", key, e);
}
}
try {
diff --git a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/RevokeConsent.java b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/RevokeConsent.java
index 07598ebe..5d287c90 100644
--- a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/RevokeConsent.java
+++ b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/RevokeConsent.java
@@ -66,7 +66,7 @@ public class RevokeConsent extends AbstractOIDCResponseAction {
@Override
protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext) {
if (revokePredicate.test(profileRequestContext)) {
- log.debug("{} Pre-existing consent revoked as predicate returned true", getLogPrefix());
+ log.debug("{} Pre-existing consent to be revoked as predicate returned true", getLogPrefix());
profileRequestContext.ensureSubcontext(ConsentManagementContext.class).setRevokeConsent(true);
} else {
log.debug("{} Pre-existing consent revoked as predicate returned false", getLogPrefix());
diff --git a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/SetConsentToResponseContext.java b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/SetConsentToResponseContext.java
index 281d490d..8a3ce2d4 100644
--- a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/SetConsentToResponseContext.java
+++ b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/SetConsentToResponseContext.java
@@ -150,7 +150,7 @@ public class SetConsentToResponseContext extends AbstractOIDCResponseAction {
assert attributeCtx != null;
final Map<String, IdPAttribute> consented = attributeCtx.getIdPAttributes();
oidcConsentCtx.getConsentedAttributes().addAll(consented.keySet());
- log.debug("{} Set to response context consented attributes {} and consentable attributes {}", getLogPrefix(),
+ log.debug("{} Set to response context consented attributes {}", getLogPrefix(),
oidcConsentCtx.getConsentedAttributes().toJSONString());
}
diff --git a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/ValidatePKCE.java b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/ValidatePKCE.java
index c0b99503..43795211 100644
--- a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/ValidatePKCE.java
+++ b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/impl/ValidatePKCE.java
@@ -197,8 +197,7 @@ public class ValidatePKCE extends AbstractOIDCResponseAction {
try {
md = MessageDigest.getInstance("SHA-256");
} catch (final NoSuchAlgorithmException e) {
- log.warn("{} PKCE S256 code challenge verification requires SHA-256", getLogPrefix(),
- codeChallengeValue, codeVerifier);
+ log.warn("{} PKCE S256 code challenge verification requires SHA-256", getLogPrefix(), e);
ActionSupport.buildEvent(profileRequestContext, EventIds.MESSAGE_AUTHN_ERROR);
return;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list