Glassfish 4.1 with Salesforce SSO over SAML - salesforce

I hope you’re doing well.
I'm facing some issues migrating applications from Weblogic to Glassfish 4.1 and, I'm quite new with the Glassfish server.
I will try to explain what I'm doing and what I've found so far on googling.
There are some applications in Weblogic server that are set up to use SSO (SAML with Salesforce as Identity Provider), and Weblogic provides an easy out-of-the-box configuration to do that and I need to do the same but in Glassfish.
By my researches I found out that Glassfish provides SSO for the applications deployed on the same Virtual Server and doesn't have any configuration related to Third Parties for using SSO over SAML and, I should use tools like OpenAM, Shibboleth or similar as Service Provider and they must be deployed on Apache Tomcat.
I found the following discussion in the stackoverflow but is quite old (9 years ago): OpenSSO/OpenAM alternatives
Also, I found another link related to Glassfish + Salesforce but is quite old as well (from 2012):
SSO using SAML2 updated document
So, my questions are:
1 - My applications are deployed in Glassfish, and I'd like to know what's the best approach or alternatives to set up SSO with Salesforce as Identity Provider over SAML (could be free and paid)?
2 - Is there any external tool that I can install/deploy in Glassfish instead of Apache Tomcat to configure the SSO over SAML?
I really appreciate any help.
Thank you.

You could use a Java library that acts as a SAML SP, no need for a full-blown SP implemetation as OpenAM for Shibboleth. Most of those libraries are acting as JEE servlet filter, so it should not be a big deal to extend your application.

Related

Single Page Application Authentication using Active Directory in Intranet

Is it possible to create a SPA using a JavaScript framework like Vue, React or Angular and secure it using Active Directory authentication? I've only seen Forms authentication examples.
Thanks for any help.
Yes. Windows authentication is performed by the web server (IIS or Apache, for example) so that's where you need to set it up. You can search Google for help on setting it up. There are lots of examples.
The framework behind the web server (Vue, React, Angular, etc.) isn't really relevant.

Azure Web Site with Push notifications

I'm trying to develop a Windows Phone 8 app. I've created a Web Site in a Windows Azure account which is an MVC 4 project with REST endpoints. I've got an SQL database in Azure to store data from the Azure Web Site. Ocassionaly, I want my application to send PUSH notifications to mobile phones. So I've created a Mobile Service and I've linked the SQL database with the Mobile Service's database in order to have got the same data for the web page and the service.
I though that when I send an HTTP POST to the web site, the script in the database from the Azure Mobile Service would be launched but it looks not to be true. Isn't it? Because of that, I would write in the controller of an HTTP POST endpoint the code to send the data to the Mobile Service endpoint in order to launch the JavaScript code to send the Push Notification.
Is that the right approach for my goal? Is there any way for sending PUSH notifications from an Azure Web Site or it is only allowed from a Mobile Service?
My last question: Do you know any books or blogs about development in Windows Azure? On the Internet there is lots of documentation but principally those are get started tutorials. I've read some books but those are really complex, boring, and not really practical.
As your website MVC4 based and is running on Windows Azure using SQL Database as backend, I will guess that it is based on ASP.NET and i will write my suggestion based on that.
Now about your question "Is there any way for sending PUSH notifications from a Azure Web Site or it is only allowed from a Mobile Service?" I would say, Azure Mobile web services are designed for the same purpose for any service running on Windows Azure to send push notification on multiple of platforms. Application developer can choose to use Mobile Services to expedite their development as well as have multiple application using the one single service for such objective.
However as you mentioned "Is there any way for sending PUSH notifications from a Azure Web Site" this is not depend on "Azure web sites" instead it is depend on what development technology you are using with your Windows Azure Application. For example in ASP.NET your can use SignalR implementation if your application is based on Java, PHP, Python, Node,js etc then you can find some other run time specific real time implementation. If you look around for websockets you will find implementation in almost every popular language or look for comet programming on this regard. Not only that you can use some of the popular 3rd party applications for this purpose as well. i.e. pusher or any other.
While Windows Azure Mobile Services will give you the best results on Windows Azure platform as it is designed to provide such specific functionality for applications running on it.
Recently released: Azure Notification Hub
http://msdn.microsoft.com/en-us/library/windowsazure/jj927170.aspx

Salesforce's Database.com and Google App Engine via JPA

Currently i try to connect (via JPA/Datanucleus) with an application, hosted by Google App Engine, to the database service of database.com (Salesforce)
After many hours of reading and trying, i could not find any solution.
So, is it even possible??
Some Information....
Database.com provides JPA: http://forcedotcom.github.com/java-sdk/jpa-provider, but i could not found any sdk on this side, but i found a jar-file hosted by grepcode http://grepcode.com/snapshot/repo1.maven.org/maven2/com.force.sdk/force-jpa/22.0.7-BETA/ - Possibly there is currently no official release ...
The problem is that this SDK from Salesforce needs datanucleus 2.0, but Google App Engine includes only datanucleus 1.1.5. So i try to update theses libaries and found this.... code.google.com/p/datanucleus-appengine/ . I tried a few hours to replace the old libaries and to use the newer, but unsuccessfully. The error was that eclipse could not find some libaries, because the newer libaries, provided by the side above, have different package structure -
I am thankful for any help...
Kotake
The official release of the JPA provider is available on Maven Central:
http://search.maven.org/remotecontent?filepath=com/force/sdk/force-jpa/22.0.7-BETA/force-jpa-22.0.7-BETA.jar
The external connection restriction won't be a limiting factor because the JPA adapter connects to Database.com over https using a SOAP API.
I can't speak to the challenges around getting DN 2.0 running on GAE. Perhaps GAE support can help with that?
As stated here in the App Engine docs, you cannot make direct connections to external servers from GAE (except over http or https using the app engine specific url APIs). You will need to find some other way to get data out of your remote database.
This link describes how to solve your problem:
How to use Force.com Database SDK on Google APP Engine
(He has updated the Saleforce SDK source code to allow it to work without problem on GAE.)

How to setup cakePHP site on Amazon Web Services

Does anybody know how to get started hosting a cakePHP on Amazon Web Services, if that is even the correct service, or if it is even possible. I have seen a few articles that refer to being able to do this. AWS seems like a pretty full feature set, without a lot of guidance.
I am specifically would like to get Cake Baked on AWS with Amazon RDS. Just getting the default dite up and running would be enough.
I have seen these links as well as a few others, but I haven't found any basic how-to information.
https://github.com/joebeeson/amazon
Hosting CakePHP app with Amazon Web Services (EC2, etc.)?
Thanks,
James
Everything works -- I have several cakephp sites on AWS. I will warn you there are a lot of annoying little bugs and hurdles with AWS though.
You'll need to understand two things -- how to use AWS and how to configure a server from scratch. If you've never configured a server from zero, I'd highly recommend going with another host.
As you stated I don't know any how-to guide on exactly that, and it is basically because any server that can run PHP 5.3 with mod_rewrite works great. I recommend you to follow any tutorial to get a server on Amazon AWS and then just download cake on the server with wget.

dotNetNuke/Moodle integration

anyone out there have a moodle module for dotnetnuke, or some kind of integration setup that at least allows SSO?
This webpage provides details on how to implement Single Sign-on between DotNetNuke and Moodle.

Resources