2015-01-19 16:12:49.636:INFO:root:qtp1811075214-32: Started POST "/users/sign_in" for 192.168.1.100 at 2015-01-19 16:12:49 -0500|
2015-01-19 16:12:49.652:INFO:root:qtp1811075214-32: Processing by Kaui::SessionsController#create as HTML|
2015-01-19 16:12:49.660:INFO:root:qtp1811075214-32: Parameters: {"utf8"=>"✓", "authenticity_token"=>"bdl9OzUt6ZClEpaYt7sELASCnAXhb1tohhpHy33jmE8=", "user"=>{"kb_username"=>"admin", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}|
2015-01-19 16:12:49.669:INFO:root:qtp1811075214-32: ===> GET http://127.0.0.1:8080/1.0/kb/tenants/?apiKey=bob|
2015-01-19 16:12:50.327:INFO:root:qtp1811075214-32: <=== 200 OK (658.0ms)|
2015-01-19 16:12:50.424:INFO:root:qtp1811075214-32: ===> GET http://127.0.0.1:8080/1.0/kb/security/permissions|
2015-01-19 16:12:50.716:INFO:root:qtp1811075214-32: <=== 200 OK (291.0ms)|
2015-01-19 16:12:50.727:INFO:root:qtp1811075214-32: ===> GET http://127.0.0.1:8080/1.0/kb/security/subject|
2015-01-19 16:12:50.730:INFO:root:qtp1811075214-32: <=== 401 Unauthorized (3.0ms)|
2015-01-19 16:12:50.733:INFO:root:qtp1811075214-32: Completed 401 Unauthorized in 1072.0ms|
2015-01-19 16:12:50.753:INFO:root:qtp1811075214-31: Started GET "/users/sign_in" for 192.168.1.100 at 2015-01-19 16:12:50 -0500|
2015-01-19 16:12:50.761:INFO:root:qtp1811075214-31: Processing by Kaui::SessionsController#new as HTML|
2015-01-19 16:12:50.771:INFO:root:qtp1811075214-31: Rendered gems/gems/kaui-0.7.2/app/views/kaui/sessions/new.html.erb within kaui/layouts/kaui_application (6.0ms)|
2015-01-19 16:12:50.784:INFO:root:qtp1811075214-31: Completed 200 OK in 22.0ms (Views: 20.0ms | ActiveRecord: 0.0ms)
The killbill log
2015-01-19 16:11:36.425:INFO:oejs.Server:main: Started @25494ms
2015-01-19 16:12:49,743 [qtp1811075214-109] INFO o.a.s.s.m.AbstractValidatingSessionManager - Enabling session validation scheduler...
2015-01-19 16:12:49,826 [qtp1811075214-109] INFO o.a.s.cache.ehcache.EhCacheManager - Using existing EHCache named [shiro-activeSessionCache]
2015-01-19 16:12:50,249 [qtp1811075214-109] INFO c.s.j.a.c.filter.LoggingFilter - 1 * Server in-bound request
1 > GET http://127.0.0.1:8080/1.0/kb/tenants/?apiKey=bob
1 > User-Agent: killbill/0.8.1; jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_20-b26 +jit [darwin-x86_64]
1 > Authorization: Basic YWRtaW46cGFzc3dvcmQ=
1 > X-Killbill-Apikey: bob
1 > Host: 127.0.0.1:8080
1 > Accept: application/json
1 > X-Killbill-Apisecret: lazar
1 >
2015-01-19 16:12:50,321 [qtp1811075214-109] INFO c.s.j.a.c.filter.LoggingFilter - 1 * Server out-bound response
1 < 200
1 < Content-Type: application/json
1 <
2015-01-19 16:12:50,702 [qtp1811075214-112] INFO c.s.j.a.c.filter.LoggingFilter - 2 * Server in-bound request
2 > GET http://127.0.0.1:8080/1.0/kb/security/permissions
2 > User-Agent: killbill/0.8.1; jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_20-b26 +jit [darwin-x86_64]
2 > Authorization: Basic YWRtaW46cGFzc3dvcmQ=
2 > X-Killbill-Apikey: bob
2 > Host: 127.0.0.1:8080
2 > Accept: application/json
2 > X-Killbill-Apisecret: lazar
2 >
2015-01-19 16:12:50,714 [qtp1811075214-112] INFO c.s.j.a.c.filter.LoggingFilter - 2 * Server out-bound response
2 < 200
2 < Content-Type: application/json
2 <
Any ideas what may be happening? Thanks!
Thanks for the response, I've been trying to login as admin/password but it doesn't work as shown in the logs of the original post.
The RBAC documentation is a little confusing to me
Im using jetty so I have a realm.properties file defined with user=admin and password=password. Am I also supposed to have security.ini defined at the same time?
I just updated to kb 0.13.1, kaui stand alone 0.1.3 and upgraded the mysql db with the new ddl files and still have the same issue. Im running these servers locally on a mac using jetty 9 on different ports.
I noticed there are now more kaui db tables, do I need to do something extra to make it work?
Whats the difference between kaui stand alone 0.1.3 and kaui 0.7.2?
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/5412839e-d6fe-49a6-a025-388d89341361%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/72dfcf72-1784-4fa6-9489-eeece759299d%40googlegroups.com.
The issue was that my jetty container had a security realm defined which also included admin/password. I removed the realm and logging into kaui was successful.
It was hard to debug because calling security/subject worked with a web browser, curl and rest client but did not work with kaui.