Skip to content

Commit

Permalink
Revert changes for handling Oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacicek committed Dec 1, 2023
1 parent c044035 commit 88de979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.3.21
### Added

## fixed
- Fixed handling of Oauth (Bearer token).

## 0.3.20
### Added
- Length for Column "SUB_PROTOCOL_BODY" has been extended to 2048.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ protected SecurityFilterChain configure(HttpSecurity http) throws Exception {
//getDescription allowed for reader
.requestMatchers( HttpMethod.GET, "/**/description" ).access( "@authorizationEvaluator.hasRoleViewDigitalTwin()" )
)
.csrf().disable()
.sessionManagement().sessionCreationPolicy( SessionCreationPolicy.STATELESS )
.and()
.oauth2ResourceServer()
.jwt();
.csrf(CsrfConfigurer::disable)
.sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.oauth2ResourceServer(oauth2ResourceServerConfigurer -> oauth2ResourceServerConfigurer.jwt());

return http.build();
}
Expand Down

0 comments on commit 88de979

Please sign in to comment.