-
Notifications
You must be signed in to change notification settings - Fork 37
Refactor to allow CSRF bypass, improve error logging for API authoring #176
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
base: main
Are you sure you want to change the base?
Refactor to allow CSRF bypass, improve error logging for API authoring #176
Conversation
ab26cad to
3cba2c1
Compare
3cba2c1 to
c5443b7
Compare
|
@tonygermano, rewrote history here as well by topic. |
kpalang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain why you've chosen to go with static configuration in the class instead of the previous instantiation approach?
server/src/com/mirth/connect/server/api/providers/RequestedWithFilter.java
Show resolved
Hide resolved
server/src/com/mirth/connect/server/api/providers/RequestedWithFilter.java
Show resolved
Hide resolved
c5443b7 to
8620766
Compare
tonygermano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few comments and questions. The headers should be addressed. The questions may just need to be answered with no changes if you don't think any are necessary.
I'm assuming that since there are not any methods yet which use the DontRequireRequestedWith annotation that it is not possible for someone to manually test whether it is working as intended or not?
server/src/com/mirth/connect/server/api/providers/RequestedWithFilter.java
Show resolved
Hide resolved
server/src/com/mirth/connect/server/api/providers/RequestedWithFilter.java
Show resolved
Hide resolved
server/test/com/mirth/connect/server/api/providers/RequestedWithFilterTest.java
Outdated
Show resolved
Hide resolved
server/test/com/mirth/connect/server/api/providers/RequestedWithFilterTest.java
Show resolved
Hide resolved
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
8620766 to
9b6b9f1
Compare
|
@tonygermano, as far as how to test the behavior dynamically:
|
9bf0fd5 to
dbdadd3
Compare
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
dbdadd3 to
b5a5f4d
Compare
X-Requested-Withheader) on endpoints that opt-in with@DontRequireRequestedWithIn support for future merge of mgaffigan:feature/add-oidc-auth