This application is use to demonstrate the integration of some AppDirect's APIs which are :
- Subscription
- User assignement
- Two-legged Oauth using signpost
- Login with OpenId using openid4java
By default, It use a PostGreSql database. In SQL folder, there is a SQL script to create the needed tables.
UI is only raw HTML. there is no css.
In the application, there are local tests to simulate appdirect work flow. it is not link with appdirect but permit to test the support of the different events.
To install the application, follow these steps :
-
Register as a developer at AppDirect: http://info.appdirect.com/developer and read their developer documentation at this address: http://info.appdirect.com/developers/docs/api_integration/api_overview
-
Add the following environment variable :
- CONSUMER_KEY (Can be obtain on your appdirect product's configuration)
- SECRET_KEY (same as above)
- DATABASE_URL = [database type]://[username]:[password]@[host]:[port]/[database name]. Example postgres://foo:foo@heroku.com:5432/hellodb
-
Clone this repository to your local system
-
Run 'mvn clean package'
-
Deploy it on a web server like tomcat