Tag: Ninjaframework

Deploying a  NinjaFramework Application on OpenShift

Deploying a NinjaFramework Application on OpenShift

Deploy a fat jar to OpenShift… Hmmmmm A NinjaFramework application is built and deployed as a fat jar by default. Given this fact, I popped this question on StackOverflow. I figured that one would need to be some kind of Maven guru in order to build some kind of configuration […]

JSON Web Token (JWT) with CORS Stateless REST Service with Facebook Authentication

JSON Web Token (JWT) with CORS Stateless REST Service with Facebook Authentication

Introduction This blog will demonstrate how to authenticate a REST(ish) service with Facebook authentication, using a JSON Web Token (JWT). This blog is follows on from previous blogs: Cross-Origin-Resource-Sharing (CORS) is detailed here http://outbottle.com/understanding-cross-origin-resource-sharing-cors-by-example/. Creating the REST Service and HTML5 Client is detailed here http://outbottle.com/cors-stateless-rest-service-with-detached-html5-client/. Adding authentication using Facebook is […]

CORS Stateless REST Service with Facebook Authentication

CORS Stateless REST Service with Facebook Authentication

Introduction This blog will demonstrate one way to enable authentication with Facebook on a Stateless CORS enabled REST service. The CORS REST service will be created using the Ninja Framework. Facebook authentication is via the Facebook JavaScript API. RestFB is used to consolidate the authentication with the REST Service. This […]

CORS Stateless REST Service with detached HTML5 client

CORS Stateless REST Service with detached HTML5 client

Introduction This blog will detail in precise steps how to create a stateless REST service that is consumed by a HTML5 client on another domain. The HTML5 client could easily be a Cordova or Phonegap app. The HTML5 client is simple and basic just for demonstration purposes. It shows the […]

Understanding Cross-Origin-Resource-Sharing (CORS) by example

Understanding Cross-Origin-Resource-Sharing (CORS) by example

If you’re here because you’re struggling with this: The solution can be summarized in the following steps: