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

RS256 signature support; CORS support; i2b2 jwt support #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mickmis
Copy link

@mickmis mickmis commented Aug 17, 2018

Hi,

At The Hyve (https://thehyve.nl) we worked this last month with IRCT, more specifically to bring i2b2 support in the front end Glowing Bear (https://glowingbear.app/) through the PIC-SURE API.
This PR contains some enhancements we made, if you are interested in mainlining them:

Best regards,
Mickaël Misbach

public class CORSFilter implements ContainerResponseFilter {

@javax.annotation.Resource(mappedName = "java:global/cors_allow_origin")
private String corsAllowOrigin;
Copy link
Contributor

Choose a reason for hiding this comment

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

This annotation will stop the server during start up when the name binding is missing, which means the default situation will need user to put value in this paramter, but in default, we'd like to disable Cross-Origin Resource Sharing. To implement not interrupting startup procedure, you can take ideas from this code: https://github.com/hms-dbmi/IRCT/blob/master/IRCT-API/src/main/java/edu/harvard/hms/dbmi/bd2k/irct/IRCTApplication.java#L469

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the feedback, see the most recent commit which should address the issue.
Anything else problematic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants