heroku Java oAuth with Salesforce - java

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.

Related

Java Rest Client for Jira Zephyr API?

is there a Java REST Client for JIRA Zephyr, similiar to the REST Java Client for JIRA? Another helpful approch would be a YAML-File or another kind of webservice description to generate a rest client from.
Thanks!
Are you using Jira server or Jira cloud?
If you are using Jira server, the answer to your question is yes: ZAPI
You can find it on the Atlassian Marketplace, it is an "add-on to Zephyr for JIRA allows access to its testing data programmatically via RESTful APIs"
If you are using Jira Cloud the answer is no. not yet.
The api access feature has been in the works for a long time, and even though their site says it is just released in beta, they pulled it. I have been talking with Zephyr tech reps about that all this last week.

Oauth2.0 server installation

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....

Authenticating with JIRA

Hi I building an application in JAVA to grab information from JIRA by performing several rest requests, but i'm running into trouble with one where authentication is needed. From the JIRA web page i have found this https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Basic+Authentication. But i'm running into problems figuring out how to do this in java, and if there is another way that would be great.
Use the Jira REST Java Client Library, here is a tutorial to get you started.

OpenId provider/server with Java

I'm trying to enhance an existing Java web application with an OpenId service, so that a logged in user can log into another OpenId enabled app using my web application as an OpenId provider.
My first attempt was to use JOS as OpenId provider which should in turn use my app's database to get existing user names and passwords. Nevertheless I could not find any documentation for JOS, when I was trying to customize JOS to make it fit to my existing app (It did not even compileUpdate: It only compiles with Java 6).
At the moment I am searching for other possible solutions, but OpenId provider frameworks seem to be scarce.
What would you recommend? Using a finished server like JOS or should I consider to enhance my application by writing my own OpenId server with libraries like openid4java?
I have not tried it myself, but my team started work on a JSF+OpenId integrated application after studying these few examples:
Client: IBM Example:very helpful
Server: IBM Example:very helpful
Additionally: what is OpenId and how its work
Also: openId API for Java
That's all I know about this, I hope it helps.
In OpenID web site, you can find tons of options.
Couple of years ago, I've implemented this kind of project using OpenID4Java.
(Note that in your back-end you will have to connect to some repository that keeps all users/passwords - I've used OpenLDAP for that)
HTH.

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