Skip to content

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

Open
mickmis wants to merge 2 commits intohms-dbmi:masterfrom
thehyve:fork/thehyve-rs256-cors-i2b2jwt
Open

RS256 signature support; CORS support; i2b2 jwt support#73
mickmis wants to merge 2 commits intohms-dbmi:masterfrom
thehyve:fork/thehyve-rs256-cors-i2b2jwt

Conversation

@mickmis
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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