Got authentication sorta working with picketlink on the server side.