Skip to content

Commit

Permalink
Merge pull request #110 from uio-bmi/oauth-fix
Browse files Browse the repository at this point in the history
Oauth fix
  • Loading branch information
kjellp authored Oct 4, 2023
2 parents 3c2e873 + 31ad6ca commit a776bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a776bf1

Please sign in to comment.