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

Support for Jasper's Encrypted Pre-Authentication Token #18

Open
ronindesign opened this issue May 15, 2015 · 0 comments
Open

Support for Jasper's Encrypted Pre-Authentication Token #18

ronindesign opened this issue May 15, 2015 · 0 comments

Comments

@ronindesign
Copy link

Hello @grantbacon

I improved session / cookie management in regards to pre-authentication via encrypted token.
Your cookie management improvements work great for storing the returned "Set-Cookie" header, but I believe there was no logic implemented to read or "set" these cookies on the curl handler for the next (or subsequent) calls to the jasper server. I've made a pull request on my implementation, I'd love to get it back into master so our project can revert back to using master for production rather than my fork.

Also, I'm not sure if the current curl implementation can handle the HTTP 301 redirect after the pre-authentication module finished validating the token and returns a JSESSIONID, looks like:

local server -> jasper (token in url) -> jasper pre-auth module (returns sessid) -> jasper REST (HTTP 301)

ref: http://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v601/token-based-authentication

Please let me know if there would be a better technique or method for implementing this solution and I can update my code, then submit another PR. Thanks, I appreciate it.

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

No branches or pull requests

1 participant