• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

oauth2.0 implementation to secure SOAP non spring/spring boot web service application

 
Ranch Hand
Posts: 977
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I need to secure SOAP web service non spring/spring boot application using oauth2.0 implementation. Can you please guide me what steps I have to take to achieve this. Any good examples, resources around this. Please advise
 
Saloon Keeper
Posts: 28321
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm. Let me apply De Morgan's Theorem to that question and see if it helps.

As I understand it, you have a vanilla, bog-standard webapp that uses SOAP protocols and you want to secure  it with OAuth2. No Spring, and definitely no Spring Boot. Correct? Something you deploy as a WAR in a stock webapp server like Tomcat or Websphere.

It has been at least 3 years since I screamed in frustration at OAUTH and a lot longer since I've done SOAP (I prefer YAML mostly now), but securing a SOAP webapp with OAUTH2 shouldn't be any different than any other JEE webapp. Likely Spring could help you, but it's not essential.

Since I'm not competent to assist here, the best I could do was try and make the problem more understandable to anyone who might be more capable.

In the mean time, do a web search on "SOAP OAUTH2 java" and see what you get. With luck maybe a Baeldung tutorial will pop up.
 
Saloon Keeper
Posts: 15731
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please tell us what framework you are using to produce and consume SOAP messages.
 
Tim Holloway
Saloon Keeper
Posts: 28321
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, we're playing Forum Ping-Pong here!

I was thinking that we had an actual SOAP forum, but I can't find it in the list and anyway, as I said, OAUTH is for securing the entire webapp and not just SOAP services.

I've added this thread to "Web Services", although I think that SOAP isn't considered as a proper "web service" as it would have been back in its heyday.

Interestingly, we also seem to lack a forum for general webapp questions. Instead we have a smattering of forums relating to particular components of webapps such as JSPs, servlets, and so forth.

Note that if you use a container-managed security system then part of your job would include configuring the container itself, so if I knew whether you're working with Tomcat, Wildfly, WebLogic, or whatever, I could also link this thread there.
 
sai rama krishna
Ranch Hand
Posts: 977
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you all.  I see some code relating to AXIS2 which seems framework being used to create this SOAP webservice.
 
Tim Holloway
Saloon Keeper
Posts: 28321
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't worked much with Axis2. It's a lot different from Axis. Buth I'm fairly sure that neither framework provides any security services. I think they leave it up to the container and/or appliation logic.
 
sai rama krishna
Ranch Hand
Posts: 977
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This legacy SOAP project which seems not using spring framework. I am able to hit the WSDL URL with sample XML request and able to get sample  response XML now using Insomnia api tool without any authentication. I have to introduce OAUTH2.0 to this legacy SOAP project. So that if I give client id, client, secret and refreshed token and header prefix as Bearer then only it should work. What classes, interfaces, dependencies etc. I have to use for this purpose. Any sample code examples , links, resources around this that anyone can share? Please advise
 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic