Hi all,
as you might have seen, I am working on SYNCOPE-652 for implementing multi-tenancy [1].

The idea is to set the "domain" property in Spring Security's SecurityContext - so that such information it is available throughout the whole system, after authentication - based on the value for the new "X-Syncope-Domain" HTTP header (when missing, "Master" is assumed).
Such header is also included in all HTTP responses.

The domain name is then used as OpenJPA slice identifier in order to read and write data from / to a specific slice: this allows physical separation for different domains' data.

The implementation work is going quite straightforward, but I've spent the last three days struggling with slices - see this thread on OpenJPA's users@ [2].

At the moment, in a separate feature branch [3] I have all unit tests succeeding, but still few problems with integration tests.

I'll keep you posted.
Regards.

[1] https://cwiki.apache.org/confluence/display/SYNCOPE/%5BDISCUSS%5D+Domains
[2] http://markmail.org/message/g44f4zlpou34uvke
[3] https://git-wip-us.apache.org/repos/asf?p=syncope.git;a=shortlog;h=refs/heads/SYNCOPE-652

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/


Reply via email to