You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
Due to the current state of the sample application, we've decided, just for now, before we understand how Security Module must work, to disable it so we can perform different HTTP operations. Applying this "solution" the server won't need to respond to an already logged user, and it will be possible to retrieve data lists from it.
Code Modification
It will be necessary to modify several files on the "oasp4j-sample-core" project.
Meaning
Due to the current state of the sample application, we've decided, just for now, before we understand how Security Module must work, to disable it so we can perform different HTTP operations. Applying this "solution" the server won't need to respond to an already logged user, and it will be possible to retrieve data lists from it.
Code Modification
It will be necessary to modify several files on the "oasp4j-sample-core" project.
BaseWebSecurityConfig.java --> (oasp4j-sample-core/src/main/java/io.oasp.gastronomy.restaurant/general/configuration/)
Enable CORS operations:
Add REST operations' paths as usecured:
Comment the call to CsrfRequestMatcher:
Just right after that, disable CSRF
CsrfRequestMatcher.java --> (opas4j-sample-core/src/main/java/io/oasp/gastronomy/restaurant/general/common/impl/security)
Add paths without CSRF protection:
application.properties --> (oasp4j-sample-core/src/main/resources)
Enable CORS operations:
SpringBootApp.java --> (oasp4j-sample-core/src/main/java/io/oasp/gastronomy/restaurant/
Anyway, I put here how those 4 files should look like by the end of this configuration:
disabled_security_oasp4j.zip
The text was updated successfully, but these errors were encountered: