tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Veronezi <thi...@veronezi.org>
Subject Re: REST service with JAAS auth trouble (TomEE+ 1.5.2)
Date Thu, 10 Oct 2013 01:45:46 GMT
Did you set the "java.security.auth.login.config" property?

http://tomee.apache.org/tomee-jaas.html

[]s,
Thiago.



On Wed, Oct 9, 2013 at 8:00 PM, Howard W. Smith, Jr. <smithh032772@gmail.com
> wrote:

> seems like you posted twice. while waiting for one of the committers to
> respond, you can search mail-list archives for the following:
>
> site:openejb.979440.n4.nabble.com rest jaas tomee[1]
>
>
> [1]
> http://lmgtfy.com/?q=site%3Aopenejb.979440.n4.nabble.com+rest+jaas+tomee
>
>
>
> On Wed, Oct 9, 2013 at 6:40 PM, gollum <chiliconlatte@gmail.com> wrote:
>
> > Hi,
> > I'm trying limit access to a RESTful web service resource. While this
> works
> > fine using the UserDatabase file "tomcat-users.xml", I cannot get it to
> > work
> > with a JAAS Realm.
> > I use a web browser for testing. The behavior with the UserDatabase
> method
> > is that when I navigate to the resource, the browser prompts me for
> > credentials and then allows access. However, when I configure the service
> > to
> > use a JAAS realm, the browser just keeps prompting for credentials over
> and
> > over, no matter what I enter. I get no access denied message or whatever
> > and
> > the logger remains silent, too.
> > Can anybody give me some pointers on what I'm doing wrong? Here's my
> > config:
> >
> > *web.xml:*
> >
> > *server.xml:*
> >
> > *login.config:*
> >
> > *users.properties:*
> >
> > *groups.properties:*
> >
> > *tomcat-users.xml:*
> >
> > *SecureService.java:*
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/REST-service-with-JAAS-auth-trouble-TomEE-1-5-2-tp4665513.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message