Questions tagged [jsr196]

JSR 196: Java Authentication Service Provider Interface for Containers

Specification: JSR 196

8 questions
6
votes
2 answers

How to override j_security_check in glassfish?

I'm currently using FORM based authentication in glassfish v2.1 to log users in and it works fine. I want to switch to ProgrammaticLogin and I want to be able to get the initially requested URL (i.e. before redirecting to login page) and use it in…
albogdano
  • 2,710
  • 2
  • 33
  • 43
5
votes
3 answers

How to integrate OpenID into GlassFish?

I want to integrate OpenID as an authentication mechanism into GlassFish 3.1 (preview). The Development Guide says that JSR 196 could be used to implement custom authentication mechanisms like OpenID. Is there already an OpenID authenticator for…
deamon
  • 89,107
  • 111
  • 320
  • 448
4
votes
1 answer

How to save an authenticated user in JASPIC?

I have developed a Security Authentication Module (SAM) and implemented the validateRequest method. I also have a simple webapp configured to use this SAM. In my validateRequest method, I check the clientSubject and set a CallerPrincipalCallback…
Davio
  • 4,609
  • 2
  • 31
  • 58
4
votes
3 answers

Jaspic module not propagating principal to local EJB in JBoss 7.4

I have a custom, JSR-196 module, that basically delegates to a service that delegates roles to a OAuth "grants" call. It does work from a servlet (request.getUserPrincipal() works fine). It does not propagate to EJB calls, where…
ymajoros
  • 2,454
  • 3
  • 34
  • 60
2
votes
2 answers

Is it possible to identify the presence of server auth module programatically in glassfish

I have enabled a server authentication module (JSR196) in Glassfish . The module works as expected however i need to determine the presence of the authentication module in a servlet programatically. Is there any way i could check the presence of the…
jay
  • 791
  • 8
  • 20
2
votes
1 answer

Server Authentication Module forwarding in Glassfish

I found this guide for developing your own Server Authentication Module (SAM) for Glassfish: http://docs.oracle.com/cd/E18930_01/html/821-2418/gizel.html It seems pretty straightforward to verify some credentials (in HTTP Auth headers for instance),…
Davio
  • 4,609
  • 2
  • 31
  • 58
2
votes
2 answers

How to get roles with JSR 196 authentification in GlassFish?

I want to use a custom authentication module conforming to JSR 196 in GlassFish 3. The interface javax.security.auth.message.ServerAuth has the method: AuthStatus validateRequest( MessageInfo messageInfo, javax.security.auth.Subject…
deamon
  • 89,107
  • 111
  • 320
  • 448
1
vote
1 answer

Session invalidation in weblogic with Jaspic/JSR196 module

We developed a jsf web application with a Jaspic/JSR196 module registered programmatically by the webapp. We followed the instructions in the following blog to achieve this : http://arjan-tijms.blogspot.pt/ The solution works ok for authenticating…
user2160468
  • 21
  • 1
  • 2