Amazon AppStream
Developer Guide

This documentation is for an older version of Amazon AppStream. For information about the latest version, see the Amazon AppStream 2.0 Developer Guide.

Sample Entitlement Service Source Code

You can download the source code for the sample entitlement from Sample Entitlement Service. The compressed file extracts to the sample-entitlement-service-src/sample-entitlement-service-1.1.0-SNAPSHOT/src/main/java/com/amazonaws/sample/entitlement directory. The contents of that directory are organized as follows:

Directory Description
/authorization Classes to authenticate user credentials and to check whether the user is authorized to access an application. This directory has the following authorization implementations:
  • Amazon

  • Facebook

  • Github

  • Policy-based authorization

  • Twitter

  • Username authorization

/exceptions Classes that return authorization exceptions to the client.
/https Classes that handle the HTTP response.
/model Classes that interact with Amazon DynamoDB to persist and query user data. For more information, see Java: Object Persistence Model. in the Amazon DynamoDB Developer Guide.
/rs Classes that use JAX-RS to handle HTTP requests and responses.
/services Classes providing the entitlement service logic.
/ui Implementation of the web-based user interface used to add users and entitle them to access applications.