From 5bb2ac7c8f9e1f2252164d6649f023d977affad9 Mon Sep 17 00:00:00 2001 From: Jens-Otto Larsen Date: Thu, 15 Aug 2024 14:02:20 +0200 Subject: [PATCH] =?UTF-8?q?Expand-fase=20for=20=C3=A5=20isolere=20innkomme?= =?UTF-8?q?nde=20STS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nav/vedtak/sikkerhet/jaxrs/TillatSTS.java | 19 +++++++++++++++++++ .../sikkerhet/jaxrs/UtenAutentisering.java | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/TillatSTS.java diff --git a/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/TillatSTS.java b/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/TillatSTS.java new file mode 100644 index 000000000..ce18876c1 --- /dev/null +++ b/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/TillatSTS.java @@ -0,0 +1,19 @@ +package no.nav.vedtak.sikkerhet.jaxrs; + +import jakarta.ws.rs.NameBinding; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/* + * Brukes i en overgangsfase for å annotere noen få endepunkt som skal tillate innkommende kall med STS + */ +@Inherited +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.METHOD, ElementType.TYPE}) +@NameBinding +public @interface TillatSTS { +} diff --git a/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/UtenAutentisering.java b/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/UtenAutentisering.java index 5ff9a05a8..920b3aaa9 100644 --- a/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/UtenAutentisering.java +++ b/felles/auth-filter/src/main/java/no/nav/vedtak/sikkerhet/jaxrs/UtenAutentisering.java @@ -14,7 +14,7 @@ */ @Inherited @Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.METHOD}) +@Target({ElementType.METHOD, ElementType.TYPE}) @NameBinding public @interface UtenAutentisering { }