Skip to content

Commit

Permalink
Forklaring på behov for supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen committed Aug 23, 2024
1 parent e64676e commit 75525f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static void validerSettKontekst(ResourceInfo resourceInfo, ContainerReque
validerSettKontekst(resourceInfo, ctx, () -> getTokenFromHeader(ctx));
}

// Denne Supplier-varianten finnes kun for at k9tilbake skal kunne lete etter tokens i cookies (i tillegg til header)
public static void validerSettKontekst(ResourceInfo resourceInfo, ContainerRequestContext ctx,
Supplier<Optional<TokenString>> tokenfinder) {
try {
Expand Down

0 comments on commit 75525f3

Please sign in to comment.