Hi Andy, some time ago I did some test to use Spring Security within Karaf, the code I wrote for this study is published here: https://github.com/cristcost/springsec
It is a very specific use case, in particular it is not a bundle but it is a War that is osgi-fied, but there is implemented a spring security login form so you may find it interesting. If you find it useful and have questions about it, feel free to ask. Regards, Cristiano Il giorno gio 26 mar 2015 alle ore 07:39 Jean-Baptiste Onofré < [email protected]> ha scritto: > Hi Andy, > > you can directly use the JAAS subject provider. > > You get a LoginContext and Subject. > > Regards > JB > > On 03/26/2015 01:47 AM, Andrew Phillips wrote: > > I am hoping to utilize the Karaf security module in a bundle of mine. > What is the best way, if there is an example, of authenticating a user if > i have a user name and password and getting back the roles so i can use the > built in security module? > > > > I appreciate the help. Love the product, I am using Karaf 3.0.3. > > > > > > Thanks! > > Andy P > > > > > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com >
