Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ public void removeGlobalClaim(ClaimValue claim) {
@Override
public ApiClient getClient() {
ClaimStore claimStore = AmbientDataContext.getCurrentClaimStore();
if (claimStore == null) {
log.debug("No claimstore found (is the ADF module configured in the Web.Config?) so unable to populate claims for PCA.");
}

String previewToken = getClaimValue(WebClaims.REQUEST_HEADERS, X_PREVIEW_SESSION_TOKEN,
claim -> Optional.of(((List<String>) claim).get(0)))
Expand Down Expand Up @@ -113,12 +110,10 @@ public ApiClient getClient() {
}

if (!configurationLoader.claimForwarding()) {
log.debug("The claimstore is not available so no claim forwarding from claimstore will be performed. Make sure the ADF module is configured in the Web.Config to enable this option.");
return client;
}

if (claimStore == null) {
log.debug("The claimstore is not available so no claim forwarding from claimstore will be performed. Make sure the ADF module is configured in the Web.Config to enable this option.");
return client;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ protected Map<URI, Object> getCurrentClaims() {
ClaimStore currentClaimStore = AmbientDataContext.getCurrentClaimStore();
if (currentClaimStore == null)
{
log.warn("Claimstore is not available. Check the AmbientFrameworkModule is configured in Web.Config");
return Collections.emptyMap();
}
return currentClaimStore.getAll();
Expand Down
Loading