Skip to content

Commit

Permalink
MSFT-3743 GHAS
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonchingg committed Jun 12, 2024
1 parent 59b515e commit fac5e39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public SecurityFilterChain basicFilterChain(HttpSecurity http) throws Exception
auth -> auth.requestMatchers(new AntPathRequestMatcher("/unsecured/**")).permitAll()
.anyRequest().authenticated()
)
.csrf(csrf -> csrf.disable())
.httpBasic(withDefaults())
.sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.addFilterAfter(basicAuthenticationFilter(), HeaderWriterFilter.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
token = (String)var8.next();
builder.append(token).append('=').append((String)oauthParams.get(token)).append(' ');
}

this.log.debug(builder.toString());
}

String consumerKey = (String)oauthParams.get(OAuthConsumerParameter.oauth_consumer_key.toString());
Expand All @@ -125,9 +123,6 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
}

ConsumerDetails consumerDetails = this.getConsumerDetailsService().loadConsumerByConsumerKey(consumerKey);
if (this.log.isDebugEnabled()) {
this.log.debug("Consumer details loaded for " + consumerKey + ": " + consumerDetails);
}

this.validateOAuthParams(consumerDetails, oauthParams);
if (this.log.isDebugEnabled()) {
Expand Down

0 comments on commit fac5e39

Please sign in to comment.