Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dat 249 bring back swagger #271

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion datasafe-rest-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@
<spring-restdocs.version>3.0.0</spring-restdocs.version>
<asciidoctor-maven-plugin.version>2.2.4</asciidoctor-maven-plugin.version>
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
<jakarta.validation-api.version>3.0.2</jakarta.validation-api.version>
<jakarta.validation-api.varsion>3.0.2</jakarta.validation-api.varsion>
<springdoc-openapi-starter-webmvc-ui.version>2.3.0</springdoc-openapi-starter-webmvc-ui.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${springdoc-openapi-starter-webmvc-ui.version}</version>
</dependency>
<dependency>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-business</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public SecurityFilterChain filterChain(HttpSecurity http, MvcRequestMatcher.Buil
.requestMatchers(swaggerResources).permitAll()
.requestMatchers(mvc.pattern("/static/**")).permitAll()
.requestMatchers(mvc.pattern(SecurityConstants.AUTH_LOGIN_URL)).permitAll()
.requestMatchers(mvc.pattern(HttpMethod.OPTIONS, "/**")).permitAll()
.requestMatchers(mvc.pattern(HttpMethod.GET, "/**")).permitAll()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that frontend works! I think Options is needed for cors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked. Frontend also works after this update. I created another branch and I made the same update. everything is working. But now i must to close this PR and pull another one because there is probably some file missing in the frontend part.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can rebase your branch on top of add_ECDH

.anyRequest().authenticated()
)
.addFilter(new JwtAuthorizationFilter(authenticationManager, securityProperties))
Expand Down
12 changes: 5 additions & 7 deletions datasafe-rest-impl/src/test/resources/jwt-config.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
debug=false
management.endpoints.web.exposure.include=*

jwt_secret=n2r5u8x/A%D*G-KaPdSgVkYp3s6v9y$B&E(H+MbQeThWmZq4t7w!z%C*F-J@NcRf
default_user=username
default_password=password
token_expiration=864000000
jwt_secret=${JWT_SECRET}
default_user=${DEFAULT_USER}
default_password=${DEFAULT_PASSWORD}
#10 Days in ms
token_expiration=${TOKEN_EXPIRATION:864000000}