• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Custom authentication provider calling a web service

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am currently working on a custom authentication provider for WebLogic as written here: http://docs.oracle.com/cd/E12839_01/web.1111/e13718/atn.htm#DEVSP205|http://download.oracle.com/docs/cd/E12839_01/web.1111/e13718/atn.htm#DEVSP205. Basically when our users log in, the credentials get validated by calling a web service and based on the response of that, the user might be able access our webapplication or not.

I started by writing my AuthenticationProvider and LoginModule class, without including the web service call for now, and afterwards packaged it into a jar to deploy it to WebLogic. Everything seemed to work fine so I included the web service call to the LoginModule's login()-method. However, after doing so I noticed that everytime the web service is about to get called, the rest of my method is being skipped, he just jumps out of my class. I assume something went wrong while calling the service although I don't get any Exception at all, he just proceeds to the next authentication provider.

I tested the web service in a separate testclass and it does work. So my question is whether it's uberhaupt possible to call a web service during the authentication process?

Thanks.

Edit: I've started to notice that the problem occurs when he's fetching the Port of the web service. As a test i've located a test webservice call (basically it just instantiates a webservice, gets the port and performs a method) in my AuthenticationProvider's initialize()-method. It seems to fail at the exact same moment as when I called the web service in my LoginModule, although now i'm getting an Exception: "java.lang.IllegalArgumentException: interface com.my.test.service.TestServicePort is not visible from class loader". The code it's trying to run is:



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic