Can you share a bit of code showing how you setup the jetty server? I think this should be pretty straightforward but I'd need to see where Shirk can hook in. On Jan 28, 2014 11:19 PM, "shockwave" <[email protected]> wrote:
> We are not using Servlet context, so the intercept is not the Filter as it > in the ticket I am referring to. We are using Context Handler from > jettyServer to intercept and then throw it to pertaining APIs. > > > On 28 January 2014 18:58, Jared Bunting-2 [via Shiro User] < > [email protected]> wrote: > > > Does your API reference the servlet API? If not, what is the interface > > for using it? > > > > If you're instantiating a Jetty server programmatically, you can simply > > create your own context (as suggested in that ticket) and attach it to > the > > server. How do you register your API with the server? > > > > > > On Tue, Jan 28, 2014 at 7:15 AM, shockwave <[hidden email]< > http://user/SendEmail.jtp?type=node&node=7579590&i=0> > > > wrote: > > > >> Hi Jared, > >> > >> I referred to this conversation ' > >> > >> > http://shiro-user.582556.n2.nabble.com/Integration-of-Shiro-with-Embedded-Jetty-td7519712.html > >> ', > >> but the problem I am facing is that > >> 'context.callContextInitialized(listener, serveletContextEvent)' is > giving > >> NPE, because for creating that event object, you need to have a 'servlet > >> context', which is missing in my case. Because, my project is an API > >> collection only, so a number of web-app can be built on it...that's why > I > >> need the security parameters to be independent of any appContext...??? > >> > >> > >> On 28 January 2014 18:07, Jared Bunting-2 [via Shiro User] < > >> [hidden email] <http://user/SendEmail.jtp?type=node&node=7579590&i=1>> > >> wrote: > >> > >> > I might still need more information here. > >> > > >> > My primary use of shiro is embedded in a jetty server but I would > >> > definitely consider that a web-based application. I instantiate the > >> > ShiroFilter and attach it to my jetty context. > >> > > >> > What are you doing differently with jetty? Can you describe your > >> intended > >> > usage a bit more? > >> > > >> > Thanks, > >> > Jared > >> > On Jan 27, 2014 11:03 PM, "shockwave" <[hidden email]< > >> http://user/SendEmail.jtp?type=node&node=7579588&i=0>> > >> > >> > wrote: > >> > > >> >> I want to embed shiro in jetty server. So, that I can enhance > security > >> for > >> >> my applications. > >> >> > >> >> > >> >> On 27 January 2014 18:47, Brian Demers [via Shiro User] < > >> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=7579588&i=1 > >> > >> > >> >> wrote: > >> >> > >> >> > It depends what you are doing, but it is vey possible. > >> >> > I've used Shiro with Mina-sshd and there are tons of tests out > there. > >> >> > People have posted a few others in the list as well. > >> >> > > >> >> > Give a little more detail and maybe we can point you in the right > >> >> > direction. > >> >> > > >> >> > > >> >> > -Brian > >> >> > > >> >> > > On Jan 27, 2014, at 7:42 AM, shockwave <[hidden email]< > >> >> http://user/SendEmail.jtp?type=node&node=7579579&i=0>> > >> >> > >> >> > wrote: > >> >> > > > >> >> > > I have found a lot of tutorials on shiro-secured web application. > >> But, > >> >> > > haven't found any on non-web-based application. Can anyone point > >> me to > >> >> > any > >> >> > > tutorial you have been through or help me with figuring out how > to > >> >> make > >> >> > my > >> >> > > application shiro-secured. > >> >> > > > >> >> > > > >> >> > > > >> >> > > -- > >> >> > > View this message in context: > >> >> > > >> >> > >> > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575.html > >> >> > > Sent from the Shiro User mailing list archive at Nabble.com. > >> >> > > >> >> > > >> >> > ------------------------------ > >> >> > >> >> > If you reply to this email, your message will be added to the > >> >> discussion > >> >> > below: > >> >> > > >> >> > > >> >> > >> > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579579.html > >> >> > To unsubscribe from Reg: Using shiro in non-web based application, > >> >> click > >> >> > here< > >> >> > . > >> >> > NAML< > >> >> > >> > http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Ankit Patil > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579583.html > >> >> > >> >> Sent from the Shiro User mailing list archive at Nabble.com. > >> >> > >> > > >> > > >> > ------------------------------ > >> > If you reply to this email, your message will be added to the > >> discussion > >> > below: > >> > > >> > > >> > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579588.html > >> > To unsubscribe from Reg: Using shiro in non-web based application, > >> click > >> > here< > . > >> > NAML< > >> > http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > >> > > >> > > >> > >> > >> > >> -- > >> Ankit Patil > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579589.html > >> Sent from the Shiro User mailing list archive at Nabble.com. > >> > > > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579590.html > > To unsubscribe from Reg: Using shiro in non-web based application, click > > here< > http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7579575&code=YW5raXRwYXRpbDRAZ21haWwuY29tfDc1Nzk1NzV8LTE3MDY1NDg5MDg= > > > > . > > NAML< > http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > > -- > Ankit Patil > > > > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Reg-Using-shiro-in-non-web-based-application-tp7579575p7579599.html > Sent from the Shiro User mailing list archive at Nabble.com. >
