8/16/2013 8:22:49 AM
in a table for the multi-nodes scenario.
This patch also enables EhCache caching for Shiro and
refactors the Shiro Guice setup.
The shiro.ini file is only used for users and roles now,
the main section is now handled in the Guice module.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/13/2013 8:03:10 PM
Meyer <pierre@mouraf.org>
|
8/13/2013 8:01:20 PM
also enforces RBAC in the server tests. All calls are now made as
an admin user (who has all permissions).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/13/2013 11:33:37 AM
Meyer <pierre@mouraf.org>
|
8/13/2013 11:31:44 AM
Meyer <pierre@mouraf.org>
|
|
|
|
|
8/9/2013 9:01:21 PM
Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/9/2013 5:57:13 PM
can be found on the wiki: https://github.com/killbill/killbill/wiki/Role-Based-Access-Control-(RBAC)
This first patch separates Multi-Tenancy from RBAC: moving forward, the Shiro filter
(and shiro.ini) will only be used for pure RBAC, regardless of Multi-Tenancy (we still
use internally various cryptography bits from Shiro for multi-tenancy authentication).
The main change in the server tests is that Multi-Tenancy is now enabled (the suite runs in its
own tenant). Since all calls go through the authentication flow, tests are a bit slower: between 300ms
to 500ms per call, resulting in a suite running a few minutes longer. On the upside, this found a
few bugs around Multi-Tenancy handling.
Among changes:
* fix a bug in DefaultAccountUserApi where the tenant_record_id wasn't populated on creation
* fix a bug in invoice and payment where the tenantId would be lost
* introduce X-Killbill-ApiKey and X-Killbill-ApiSecret headers for Multi-Tenancy authentication
* turn Multi-Tenancy on by default
* enable TestTenantFilter (no dependency on shiro.ini anymore)
* server tests timeouts have been increased (to work around slowness when priming Shiro)
* .idea: add misc. words to the dictionary
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/4/2013 1:02:03 PM
helper
Update to killbill-commons 0.2.1 and get rid of the util specific
GlobalLocker and MysqlTestingHelper.
This also fixes the tests with a local database (-Dcom.ning.billing.dbi.test.useLocalDb=true):
TestDefaultBlockingApi was creating a bad bundles table that would later on break subscriptions
tests.
Note that we needed to update all subprojects pom.xml as test-jars dependencies are not
transitive (see http://jira.codehaus.org/browse/MNG-1378).
Misc. changes:
* Update .idea files
* Add mysql as a defined group
Testing Done: ran all tests with the embedded DB and with my local DB.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|