Skip to content

Commit

Permalink
remove unused method parameter in Application class
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgngwr committed Dec 2, 2022
1 parent 0510f4b commit b8aba81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/trynoice/api/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ HttpTraceRepository httpTraceRepository() {
SecurityFilterChain securityFilterChain(
@NonNull HttpSecurity http,
@NonNull BearerTokenAuthFilter bearerTokenAuthFilter,
@NonNull CookieAuthFilter cookieAuthFilter,
@NonNull GlobalControllerAdvice globalControllerAdvice
@NonNull CookieAuthFilter cookieAuthFilter
) throws Exception {
// disable default filters.
http.cors().disable()
Expand All @@ -107,7 +106,6 @@ SecurityFilterChain securityFilterChain(
.securityContext().disable()
.sessionManagement().disable();


// Always return 401 since we don't have an entrypoint where we can redirect users for
// authentication. They must manually initiate authentication by invoking relevant endpoints
// upon receiving a 401 response status.
Expand Down

0 comments on commit b8aba81

Please sign in to comment.