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

Expose security context to any Hystrix command. #1053

Closed
daniellavoie opened this issue May 26, 2016 · 1 comment
Closed

Expose security context to any Hystrix command. #1053

daniellavoie opened this issue May 26, 2016 · 1 comment

Comments

@daniellavoie
Copy link
Contributor

daniellavoie commented May 26, 2016

This issue is a follow up from Spring Cloud Security issue #87. I came to the conclusion that the request feature was Hystrix focused rather than Spring Cloud Security. Spring Cloud Security is aimed towards OAuth2 support.

Hystrix commands are actually unable to access the security context if executed with an isolation strategy set to THREAD. Only workaround available consists in setup the execution isolation to SEMAPHORE.

Using Hystrix command hooks, we could build an infrastructure to transfert the Security Context from the main thread to the one executing the Hystrix command.

@daniellavoie daniellavoie changed the title Transfer security context from feign client to hystrix execution context Expose security context of a feign client to an hystrix command. May 29, 2016
@daniellavoie daniellavoie changed the title Expose security context of a feign client to an hystrix command. Expose security context to any Hystrix command. Jun 10, 2016
@spencergibb
Copy link
Member

Closed via 36fec07

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

2 participants