Read DEBUG setting from environment#7
Read DEBUG setting from environment#7lekkimworld wants to merge 6 commits intosalesforceidentity:masterfrom
Conversation
…vironment variable and show a bit or more debug debug on validation for learning.
davidjbrossard
left a comment
There was a problem hiding this comment.
Thanks for the neat suggestions. Here are some comments
- What's the point of the CSPFilter?
- In SAMLValidator.java, you use System.err.println()... Perhaps you should use either of System.out.println() or a logging framework e.g. log4j.
davidjbrossard
left a comment
There was a problem hiding this comment.
Are these Eclipse files instead of VSCode? Generally, we try to avoid any IDE-specific files and stick to industry-adopted techniques (e.g. Maven)
|
Hey - the reason why I used System.err instead of System.out is that the project used that stream already - also for regular logging. I agree that System.out is better for this kind of thing and I'll happily change it. As to the CSPFilter and the IDE specific files then it's probably because I thought pull requests were against a specific commit and not a branch. The CSPFilter was one I added yesterday when playing around with Canvas API apps in Salesforce as they need a CSP header to show the app in an iframe. Maybe it makes the most sense if you reject this pull request, I isolate the proposed changes in a new branch and resubmit the pull request? Thanks |
I used this repo when learning about SAML in general and configuring it with Salesforce Communities for single sign on. In that I updated SAMLValidator.java to allow it to read the DEBUG setting from an environment variable and show a bit or more debug debug on validation for learning.
Thank you for sharing the repo. Merge if you like or discard :)