Question: How to test authorization without restconf?


"WangYuchen <lucas_sjtu@...>
 

Hi everyone:

I am trying to get started with aaa source code and in particular its authorization. I got the code from here:
git clone https://git.opendaylight.org/gerrit/aaa
According to the README.md, AAA is automatically installed upon installation of odl-restconf-noauth and enabled through aaa-shiro-act, but after I built the code and launch karaf, there is no such features in its feature:list. I try to add netconf features repo from ODL Carbon release but odl-restconf-* still cannot be installed (error occurs).

I manually installed odl-aaa-shiro and was able to test the authentication example provided in README.md. However, the authorization example requires restconf as well.

So, where can I get a correct version of restconf to test with aaa? Otherwise, how can I test authorization from a non-RESTCONF context? 

Thanks a lot!

Lucas


Ryan Goulding <ryandgoulding@...>
 

Thats because aaa doesn't include/depend on the RESTCONF related features, it is the other way around.  To get RESTCONF from aaa karaf shell you will need to do a feature:repo-add on the appropriate RESTCONF feature repository then install odl-restconf.

Hope this helps,

Regards,

Ryan Goulding

On Tue, Nov 21, 2017 at 3:01 AM, WangYuchen <lucas_sjtu@...> wrote:
Hi everyone:

I am trying to get started with aaa source code and in particular its authorization. I got the code from here:
According to the README.md, AAA is automatically installed upon installation of odl-restconf-noauth and enabled through aaa-shiro-act, but after I built the code and launch karaf, there is no such features in its feature:list. I try to add netconf features repo from ODL Carbon release but odl-restconf-* still cannot be installed (error occurs).

I manually installed odl-aaa-shiro and was able to test the authentication example provided in README.md. However, the authorization example requires restconf as well.

So, where can I get a correct version of restconf to test with aaa? Otherwise, how can I test authorization from a non-RESTCONF context? 

Thanks a lot!

Lucas

_______________________________________________
aaa-dev mailing list
aaa-dev@...
https://lists.opendaylight.org/mailman/listinfo/aaa-dev