Oauth2.0 server installation - java

I have created rest webservice and configured oauth2.0 by following the below link https://github.com/MinchuckSasha/SpringRestSecurityOauth. I deployed my web service on jboss application server.
I got it working i am getting access tokens and everything.
That's for a single webservice i configured oauth2.0, Now i want install Oauth2.0 server on jboss, so that i can register my other api's.
I have been researching from google, stackoverflow and othersites but didn't get any documentation.
Can anyone please help me where i can find related information ??
Thanks in advance....

Related

Apache CXF not working with waffle windows authentication framework

We are using waffle for NTLM login in our application. we are able to successfully achieve the windows authentication but with waffle, Apache CXF is not when Service.create method tries to get the WSDL file by hitting URL it gets a 401 error. please us to figure out how can we make cxf workable with waffles.
Your help will be appreciated.
we had already tried jcifs but it not working in our case.

how to create a "https" secured REST API from a SOAP servies in java springboot

I am working on integrating a SOAP service provided by european VAT validation service VIES.
the SOAP service is hosted at following links
https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
I think both of them leads to pretty much same site with one being http and other https
(please let me know if there is a difference).
so I integrated the wsdl into our spring boot application and it worked fine when I tried in in my local host which was http. but as soon as I hosted it in to our live server which is https it started giving error reply.
I searched for possible reasons why it isn't working and ended up with the conclusion that the SOAP services provided by VTES works only in http sites.(let me know if I am wrong)
but when I searched for more solutions I found more sites that provide https secured REST application that uses same SOAP service (https://vatlayer.com/) . We tried to reason with our client to purchase one of those since they only allow a limited number of free VAT validations, but they are not happy with that,
but it got me thinking since they can built a https secured REST API with this thing it means I can do that to. so I searched for a solution but couldn't find any, can anyone please give a insight into it about how it is done.
Thanks and regards.
If you are calling the link from the web browser(client side) and if your live web application runs on HTTPS, then you should also call the SOAP service with HTTPS or otherwise the browser will see it as violating the Same Origin Policy and will block your request.

heroku Java oAuth with Salesforce

I have to create a security layer on top of my current Heroku app/salesforce connection using OAuth 2. It has to be that the authorization server and resource server is on the Heroku side so others cannot access the Heroku. The Heroku is effectively being sent some data through a Salesforce callout and then returning the computed results. I have found numerous tutorials from Salesforce as the server side but I cannot find any with a Java based Heroku. I have also found the apache oltu library but cannot find any tutorials as to how to use it correctly. If anyone could give me any tips/tutorials/code snippets, would be greatly appreciated!
Thanks, Josh
This might help: https://www.jamesward.com/2016/01/26/quick-force-java-getting-started-with-salesforce-rest-in-java
Code is at: https://github.com/jamesward/quick-force-java
It has the OAuth pieces and runs on Heroku.

Sql Server Reporting Service 2010 WITH JAVA ee application

I am trying to integrate Sql Server Reporting Service with Java EE application.
I can see 2 reports on the reporting server. I am trying to use the RS web service to access the server. Steps taken by me are
Created Dynamic project in Eclipse
Got to New - Web Service client and entered the Web service defination as
://serverName:port/ReportServer/reportservice2010.asmx?wsdl
I see in my project the below packages
com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer
com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer.holders
My code:
com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer.Reporting‌Service2010SoapProxy service = new com.microsoft.schemas.sqlserver.reporting._2010._03._01.ReportServer.ReportingSe‌​rvice2010SoapProxy();
String endPo="://serverName:port/ReportServer/reportservice2010.asmx?wsdl";
service.setEndpoint(endPo);
service.logonUser("serverName\\username", "password",null );
The error is:
AxisFault faultCode: {xml.apache.org/axis}HTTP faultSubcode: faultString: (401)Unauthorized
After this I am not sure what I need to do. Please help me.
I also tried to consume this web service using a proxy but I am getting an error.
Kindly help me on what should be exactly done in order to consume SSRS 2010 webservice in Java.
Regards,
Neel
My guess is that you've got incorrect authentication settings.
Your generated proxy is likely using HTTP Basic authentication, which by default isn't supported by reporting services. If you want to support it (if it's acceptable?) you need to enable the RSWindowsBasic authentication type.
Have a look at http://msdn.microsoft.com/en-us/library/bb283249.aspx for the documentation on how to do so.
Ongoing, you'll need to research how to make your java proxy work with NTLM.

How can I get started building a Facebook application with a Java server backend?

I want to utilise the Facebook JavaScript API in the client, but manage app logic and configuration on the server through REST web services. I've tried a lot of tutorials out there, but so far I haven't seen one that actually works.
What do you recommend as a server / web framework?
What technology should I use for my REST endpoints?
How can I host this application in a place where facebook will "see" it as a valid app?
I'm looking for a comprehensive tutorial or set of recommended practices to get started.
Thanks
I just so happened to create a blog series that takes you through EVERYTHING you will need. The articles:
Setup Eclipse (IDE) and JBoss AS7 (server)
Setup other JBoss Tools including Forge
Setup JAX-RS Web Service in Java using Forge (very easy!)
Setup account to Host the site for FREE with OpenShift
Setup an entire sample Facebook App
This blog series should be EXACTLY what you're looking for. You can find the first of three articles here:
http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/
I would recommend going with Spring Social module with has a good abstraction of the Facebook API.
You could then expose these services via REST with Spring Web Services or Jersey.
I am not sure about the hosting. Facebook should see it as a valid application no matter the host. Even your development computer/localhost cando it.

Categories

Resources