Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE2F4200CC2 for ; Wed, 5 Jul 2017 13:21:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BCBDA162FC6; Wed, 5 Jul 2017 11:21:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0E073162FC5 for ; Wed, 5 Jul 2017 13:21:57 +0200 (CEST) Received: (qmail 62770 invoked by uid 500); 5 Jul 2017 11:21:56 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 62753 invoked by uid 99); 5 Jul 2017 11:21:56 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 11:21:56 +0000 Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2E27D1A0029 for ; Wed, 5 Jul 2017 11:21:55 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id l130so123472509oib.1 for ; Wed, 05 Jul 2017 04:21:55 -0700 (PDT) X-Gm-Message-State: AKS2vOwcgmgoQrxyrg6vlDZgQyC2yvpiaxxxt6bKd0MjWoazWIrsHZiU 3/LeJQ3IQv+SMvZkdAGbcU+DYuVO4w== X-Received: by 10.202.87.5 with SMTP id l5mr25460596oib.214.1499253714800; Wed, 05 Jul 2017 04:21:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.205.233 with HTTP; Wed, 5 Jul 2017 04:21:34 -0700 (PDT) In-Reply-To: References: <4ac02a3f3b3a403d8bded11b4310c454@ex13-ell-cr-25.home.ku.edu> <2be9b435f7e74a03b7e1a9b6d78b020c@ex13-ell-cr-25.home.ku.edu> <4194d56b413b406a8ec834fd71a1eda3@ex13-ell-cr-22.home.ku.edu> From: Lukasz Lenart Date: Wed, 5 Jul 2017 13:21:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Integrate Apache Shiro with Struts2 To: Struts Users Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Wed, 05 Jul 2017 11:21:58 -0000 Could you open a PR against https://github.com/apache/struts-examples and contribute your example there? 2017-06-30 20:54 GMT+02:00 Ken McWilliams : > Thank you, look forward to it, I'm working on the same thing! > I'm using this SO Q&A as my starting point and the accepted answers link > the an similar example using StromPath: > https://stackoverflow.com/questions/27063599/writing-custom-shiro-realm > > After that is don't I'll be looking to integrate AspectJ and I've > experimented with Dagger2 so those would be the last pieces before I can = do > the "real work". > > On Fri, Jun 30, 2017 at 5:46 AM, Kofford, C. Todd wrote= : > >> Ken, I'm glad to help! >> >> I tried to use the latest version of shiro (1.4.0) too, but ran into a >> some issues. I've posted a message to the shiro user group, and those gu= ys >> are really good about getting back and resolving issues, so I think it's >> only a matter of time before that gets resolved. >> >> I've started another small project, still on shiro 1.3.2, that >> demonstrates how to define a custom shiro "realm", where you can do >> authentication and authorization. It's really pretty easy to implement, = so >> it shouldn't take too long to crank out and post up to GitHub. >> >> Todd Kofford >> tkofford@ku.edu >> >> -----Original Message----- >> From: Ken McWilliams [mailto:ken.mcwilliams@gmail.com] >> Sent: Thursday, June 29, 2017 1:25 PM >> To: Struts Users Mailing List >> Subject: Re: Integrate Apache Shiro with Struts2 >> >> Todd, thank you this was a huge help! >> >> I've followed what you did and added it into a demo project that isn't >> much more complicated than what you provided, just so I know how it all >> works. >> >> One of the things I found the hard way is if you move to Shiro 1.4 (the >> latest) it won't start... >> >> I would like to turn your project into an struts2/shiro integration guid= e >> (although the provided project is quite straight forward). I'm using JPA >> services to get my user credentials so a bit of a guide there wouldn't >> hurt, so next step is to figure out how to make that work with shiro. >> >> Regards, >> Ken >> >> On Mon, Jun 26, 2017 at 9:40 AM, Kofford, C. Todd wrot= e: >> >> > OK, I've just uploaded a very simple struts2 - shiro example to github= : >> > https://github.com/tkofford/struts2shiro. NOTE - this is a very simple >> > example that uses a default shiro.ini file for >> > authentication/authorization and struts interceptor for "injecting" th= e >> shiro subject into the stack. >> > >> > I'll start building a more complicated example that uses spring to >> > inject the shiro parts, and reply back when that's done. >> > >> > Todd Kofford >> > University of Kansas >> > tkofford@ku.edu >> > >> > -----Original Message----- >> > From: Ken McWilliams [mailto:ken.mcwilliams@gmail.com] >> > Sent: Thursday, June 22, 2017 11:10 AM >> > To: Struts Users Mailing List >> > Subject: Re: Integrate Apache Shiro with Struts2 >> > >> > That would be awesome. From having looked around on the web there is >> > very little Struts2/Shiro content. Some examples would be a great help= . >> > >> > On Thu, Jun 22, 2017 at 9:51 AM, Kofford, C. Todd >> wrote: >> > >> > > We've been using strut2 and shiro for a long time (actually since >> > > the old jsecurity days). I'd be happy to contribute some trivial and >> > > more complex examples if needed. >> > > >> > > Todd Kofford >> > > University of Kansas >> > > tkofford@ku.edu >> > > >> > > >> > > -----Original Message----- >> > > From: Lukasz Lenart [mailto:lukaszlenart@apache.org] >> > > Sent: Sunday, June 18, 2017 3:23 AM >> > > To: Struts Users Mailing List >> > > Subject: Re: Integrate Apache Shiro with Struts2 >> > > >> > > 2017-06-17 19:08 GMT+02:00 Ken McWilliams = : >> > > > If not I hope to follow up with a solution. >> > > >> > > +1 and we can add it to our docs :) >> > > >> > > >> > > Regards >> > > -- >> > > =C5=81ukasz >> > > + 48 606 323 122 http://www.lenart.org.pl/ >> > > >> > > -------------------------------------------------------------------- >> > > - To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> > > For additional commands, e-mail: user-help@struts.apache.org >> > > >> > > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> > For additional commands, e-mail: user-help@struts.apache.org >> > >> >> >> >> -- >> Sent from my C64 using a 300 baud modem >> > > > > -- > Sent from my C64 using a 300 baud modem --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org