summaryrefslogtreecommitdiffstats
path: root/keystone-moon/keystone/contrib/moon/core.py
AgeCommit message (Collapse)AuthorFilesLines
2015-12-16Send Moon from a Keystone filter to a Keystone application.asteroide1-76/+30
Change-Id: Ib74edc222e6d0705c7f7c6c602401fca75626c23
2015-12-11Delete an unnecessary API link.asteroide1-1/+0
Change-Id: I907456ff282ec83234f66a979da18b1d46ca77fc
2015-12-10Change API calls to have less loops and change the API calls in the enforce ↵asteroide1-155/+145
function. Change-Id: Ia8a2eebcd014967a34fd0f7bf6cd09e7cdad64ed
2015-12-03Add try / except because moonlog_api is missing sometimes (need more ↵asteroide1-3/+5
investigations). Change-Id: I6d6bb334984e9a33fd6e43c5a1b97d9e7500d8f8
2015-12-01Fix an error on aggregation algorithm.asteroide1-2/+6
Change-Id: If5387e847c3102d78c71fe3ee194133e20959e1b
2015-11-24When deleting a subject, check if the authz/admin intra-extension exists in ↵asteroide1-4/+8
order to not try to delete a subject in a non-existent intra-extension. Change-Id: Ief26dccc856ab565b3ba610cf6c7a95c20fab297
2015-11-20During authorization, the subject ID was sometime the Keystone ID which ↵asteroide1-18/+21
leads to a false authorization error. Change-Id: If2e0d2aa6cd1e759be3de500c91d72cbdbaa846e
2015-11-03Improve some exception logs mainly for debugging purposes.asteroide1-8/+8
Change-Id: Ie6b2ba1bfdc5e8729605e935481669b90990b2d8
2015-10-14Merge "When a tenant is not managed by Moon, the result of the authz ↵Ruan HE1-1/+3
function is always True."
2015-10-14When a tenant is not managed by Moon, the result of the authz function is ↵asteroide1-1/+3
always True. Change-Id: Ic63d93371fb1661078367c47ce9ccd0c99537070
2015-10-14Change the way the tenant dict is updated with Keystone information on the ↵asteroide1-1/+3
add_tenant_dict. Change-Id: Ifa164a51b0195f546b97267ffca677bbf3a18eca
2015-10-12Check the content of tenant_dict['intra_admin_extension_id'] to allow or not ↵asteroide1-2/+3
the synchronisation process. Change-Id: Iba22a1ae8444f2367272ef68b8310b5bff7c2b0c
2015-10-12Fix a bug when sending a new log in moon_api.asteroide1-6/+6
Change-Id: I8a457018bd2e03f2fcaed3143d2c4c2df7bcfbf7
2015-09-26Review the KeystoneMiddleware code, fix some bugs in the authz functions.asteroide1-13/+6
Change-Id: I9d9966c061fc71cd8ef5ce88217dcdfa63e0722f
2015-09-24Create user in Keystone database when needed.asteroide1-11/+52
Change-Id: Ie898bd663e572785bd98b4d9143caa6a9bc5cead
2015-09-22Delete all references to the AggregationAlgorithms SQL table.asteroide1-0/+3
Change-Id: Ia508870842d17e6b8e2d8f34bd362cf3377f1594
2015-09-21Put the ID of aggregation algorithm for a particular IntraExtension in the ↵asteroide1-30/+38
intraextensions table and generate a static UUID for each aggregation algorithms in the memory backend. Change-Id: Ic56dc05ca3d7e099e1d529c5bb88b5d93de88ae1
2015-09-17In controllers, user_id is the Keystone ID and that don't match with the id ↵asteroide1-29/+17
in the core.enforce. Change-Id: Ib7dc8452b16da3f82ff48b74bd29cf04f3390834
2015-09-15The genre attribute may be not set. So automatically setting it, by looking ↵asteroide1-0/+5
to the name of the model. Change-Id: I744ee376e6b235bfb3a7ac75582e8d9426746d35
2015-09-11Debug all the tenant commands in moonclient and fix some bugs in opnfv-moon ↵asteroide1-38/+36
related to tenant. Change-Id: I1d21df2a55545582a98c17181255ab53cab5689b
2015-09-11Change the deletion behaviour of scope and assignment when deleting an ↵asteroide1-15/+16
intra-extension because of foreign key contraints. Change-Id: I8451eb583052327e97ff06097e5f6e6baaa7619b
2015-09-08Add_tenant can now be used even if the tenant ID is unknown.asteroide1-1/+3
Change-Id: I623483c99a349bd1ccc3b5b88c3973ce28dfd633
2015-09-04End of Keystone code update to branch Master and fix some bugs.asteroide1-40/+76
Change-Id: Iad3c4f0e6fc78532b92761aa46f2d8508f46a7da
2015-09-01Update Keystone code from official Github repository with branch Master on ↵asteroide1-0/+8
09/01/2015. Change-Id: I0ff6099e6e2580f87f502002a998bbfe12673498
2015-08-31Fix all tests.asteroide1-245/+356
Change-Id: I62fcce5942dee7ed5755fe20d012e4a0d5c535c9
2015-08-10review codeWuKong1-147/+138
Change-Id: Ie3be0aa22331803a9e2ef8837f8637bb762ae720 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-08-07review codeWuKong1-71/+92
Change-Id: Idf3aedc0355fbe714a4a4808fcd2e4749da53195 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-31Play unit tests and modify code accordingly. (some tests are still not OK).asteroide1-219/+373
Change-Id: I021081710411be12ffbbb0a3c8192626dbf9f8ce
2015-07-27Merge "Raise AuthzException in IntraExtensionAuthzManager whenn needed ↵Ruan HE1-1/+77
(untested)."
2015-07-27Merge "Add, del, set subjects in both IntraAuthzExtension, ↵Ruan HE1-12/+58
IntraAdminExtension. (untested)"
2015-07-27Merge "Add more log in authz function. (untested)"Ruan HE1-4/+5
2015-07-27Merge "Add deletion of secondary keys in core.py and add a forgotten API ↵Ruan HE1-2/+32
function in driver (del_aggregation_algorithm) (untested)"
2015-07-27Raise AuthzException in IntraExtensionAuthzManager whenn needed (untested).asteroide1-1/+77
Change-Id: Ibf7771c97804a632456a4f0807b909ce99365c1a
2015-07-27Add, del, set subjects in both IntraAuthzExtension, IntraAdminExtension. ↵asteroide1-12/+58
(untested) Change-Id: Ifca8f915fd50e3557478d9e3dcc1cd96dc22e277
2015-07-27Add more log in authz function. (untested)asteroide1-4/+5
Change-Id: Iae7323a1865bc61f72107e9e8521c6d1a237ccb6
2015-07-27Add deletion of secondary keys in core.py and add a forgotten API function ↵asteroide1-2/+32
in driver (del_aggregation_algorithm) (untested) Change-Id: I442d874846d375d7266df1567f40110e32ef0c57
2015-07-27Add initialization for ADMIN_ID and ROOT_EXTENSION_ID in core.py.asteroide1-50/+92
Change-Id: I25e69dbc19e7c4d896c0a0430805198a76f06957
2015-07-24add_tenant function in controllers.py nox check if tenant name exist in Keystoneasteroide1-47/+73
fix some bugs in enforce function and SQL functions Change-Id: Ie760aad146d249fa6d98edbbb64dae732724e756
2015-07-22finish review codeWuKong1-1/+1
Change-Id: Ie39003b523b287837d4f93f82c035b8f921067a5 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-22finish review codeWuKong1-120/+135
Change-Id: Ic5c9dcff1efe48f39cdb3f614675c0f945fe9a27 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-22Fix bugs by executing tests (need more work)asteroide1-61/+71
Change-Id: I4ab59ab0e9269568e26e48c6364a636e9b5088f1
2015-07-21add super_extensionWuKong1-82/+81
Change-Id: I2f9e7bc1aa658e8a7ffb222a49abb2370cf1492f Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-21Merge filter functions.asteroide1-79/+99
Change-Id: I3b49f78f31f83b7ac54cc936009842fee4f33e3a
2015-07-21Modify __load_* functions and object and action related functions.asteroide1-201/+250
Change-Id: I9016d1202d8fa93997f069706f1abe2e68a4c176
2015-07-21add super_extensionWuKong1-124/+3
Change-Id: I7b234759a4aed653228f02d39df16021286242ed Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-21review codeWuKong1-251/+93
Change-Id: Id4e35498271093f44694b9640daeedbdca5a8c69 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-20review codeWuKong1-635/+241
Change-Id: I51abe36356ff91f1142d0307a69c48dff1a08a46 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-20review codeWuKong1-52/+52
Change-Id: I16e40a78609687751fad4e80f3f709038513f229 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-20review codeWuKong1-4/+13
Change-Id: I53e2ffd8c23fd13b8320fd902b1118b1f597a863 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
2015-07-17review backendsWuKong1-20/+22
Change-Id: Ic82081a421e672a3fff0559f5fbd82736316803e Signed-off-by: WuKong <rebirthmonkey@gmail.com>