diff --git a/Dockerfile b/Dockerfile index 17e1ed5..ffbf567 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ FROM eclipse-temurin:17-jre-alpine RUN apk add --no-cache ca-certificates -COPY --from=builder /target/*-SNAPSHOT.jar /localega-tsd-proxy.jar +COPY --from=builder /target/localega-*.jar /localega-tsd-proxy.jar RUN addgroup -g 1000 lega && \ adduser -D -u 1000 -G lega lega diff --git a/src/main/java/no/uio/ifi/ltp/LocalEGATSDProxyApplication.java b/src/main/java/no/uio/ifi/ltp/LocalEGATSDProxyApplication.java index 39871ea..c9d39ad 100644 --- a/src/main/java/no/uio/ifi/ltp/LocalEGATSDProxyApplication.java +++ b/src/main/java/no/uio/ifi/ltp/LocalEGATSDProxyApplication.java @@ -64,7 +64,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { requiresChannel(channel -> channel.anyRequest().requiresSecure()) .exceptionHandling(exception -> exception.authenticationEntryPoint(entryPoint)) .csrf(AbstractHttpConfigurer::disable) - .securityMatcher("/token.html", "/token", "/user").authorizeHttpRequests(request -> request + .securityMatcher("/token.html", "/token", "/user", "/oauth2/authorization/elixir-aai", "/oidc-protected") + .authorizeHttpRequests(request -> request .requestMatchers("/token.html").authenticated() .requestMatchers("/token").authenticated() .requestMatchers("/user").authenticated())