Skip to content

Commit

Permalink
Added authenticated user debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Elbers committed Nov 1, 2024
1 parent d51fd27 commit 2d0b8b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected void onBeforeRender() {
} else {
//Already logged in, so redirect to creation page
//TODO: show choice to add to an existing collection or create a new collection
logger.info("Redirect logged in");
logger.info("Redirect logged in, user={}", getUser().getName());
throw new RestartResponseException(MergeCollectionsPage.class);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import eu.clarin.cmdi.virtualcollectionregistry.QueryOptions;
import eu.clarin.cmdi.virtualcollectionregistry.model.VirtualCollection;
import java.security.Principal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
*
Expand All @@ -11,6 +13,8 @@
@SuppressWarnings("serial")
public class PrivateCollectionsProvider extends CollectionsProvider {

private final static Logger logger = LoggerFactory.getLogger(PrivateCollectionsProvider.class);

private final String authenticatedUsername;

public PrivateCollectionsProvider(final Principal authenticatedPrincipal) {
Expand All @@ -19,6 +23,7 @@ public PrivateCollectionsProvider(final Principal authenticatedPrincipal) {

public PrivateCollectionsProvider(final String authenticatedUsername) {
this.authenticatedUsername = authenticatedUsername;
logger.info("Authenticated username: {}", authenticatedUsername);
}

@Override
Expand Down

0 comments on commit 2d0b8b5

Please sign in to comment.