Authorization Provider Service


The authorization provider service, gives the ability to grant/deny end user access to content, through external authorization systems. This product aims to allow customers to connect any type of 'entry pass' to their content. Some examples of what an 'entry pass' type can be:

  1. User Registration (username/password form)
  2. A mobile operator recognized-only access
  3. A specific activity (question, game) which grants access to the successful users.


User / End User

The person using the application


The customer's native application - either iOS or Android.

Authorization Provider

The external provider who is responsible for authorization of the user.


The native screen in which the options for accessing the video item are displayed. These can include in-app purchase, redeem code entry, and/or the authorization provider option.

Security Token / Access Token

The credential used to access protected resources. An access token is a string representing an authorization issued to the client. In this service we use JSON Web Token type (as explained here).

Secret Key

A pre-shared key that is used to sign the security token on the provider side and verify the signature at Applicaster's side.

Main Flow

  1. User clicks play on a video item
  2. If the item is marked for authorization (on Applicaster side), user is presented with a Storefront which includes the option to get authorized
  3. User chooses the authorization option.
  4. Applicaster client initiates the authorization process by opening the relevant authorization provider URL, and passing the authorization provider the relevant parametrs.
  5. An authorization screen appears and user goes through authorization procedure with authorization provider.
  6. If the authorization provider authorizes the user, a redirect is done, passing a valid security token and other expected parameters.
  7. If the authorization provider does not authorize the user, the authorization provider will deal with the failure.
  8. The application makes another request to Applicaster's servers along with the security token.
  9. If the claim is verified, Applicaster's content system will send the Item's stream URL to the application.
  10. If the claim is not verified, the user will be redirected to the Storefront to select another option to access the content.



In order to implement this feature, the authorization provider would need to create a URL which has the ability to authorize the user's validity, while adhering to the following standards described.

Opening the authorization provider URL

After the user chooses the authorization option from the Storefront in the app, Applicaster will open the authorization provider, with the following parameters:

  • redirect_uri: This is the URL that the authorization provider will need to redirect to at the end of the successful authorization process.
  • uuid: The unique identifier of the device, will need to be added to the JWT payload, explained below.

The authorization provider URL will thus open in a way that looks similar to this:

Authorization Process

The authorization provider is responsible for authorizing/not authorizing the user. If the user is found valid, the authorization provider will need to redirect to the redirect_uri specified by Applicaster (explained above), and add a JWT as a token parameter.

The redirect URL will thus look similar to this:


How to build the security token (JWT)

The JWT website describes the concept of this token type and the way to build it. Please also refer to the JWT libraries listed at the end of this document.
The token we need to receive back, should adhere to the following:

JWT Header

The algorithm supported is always HS256, and the type of token is always JWT, so the JWT header will consist of this:

    "alg": "HS256",
    "typ": "JWT"
JWT Payload

The JWT payload should include the following parameters.

    "iss": "CUSTOMER_NAME",
    "exp": "1434266030",
  • iss (Issuer): The authorization provider.
  • exp (Expiration Time): The time in unix timestamp until which the token is valid.
  • uuid (Unique user identifier): Universally unique identifier, provided to the authorization provider by Applicaster client.
JWT Signing

Then, the JWT needs to be signed with the secret key (Explained in section below).

Secret Key

The secret key is the key that is used to sign the JWT (as explained here). It can be generated on the Applicaster side in our CMS, as shown below. The secret key should be kept the same on both servers (Applicaster's, and the authorization provider's) in order to sign the JWT on the authorization provider's side, and then authenticate it correctly on the Applicaster side.

Creating an Authorization Provider entity in the CMS

In the Applicaster CMS, go to Admin > Policies.


Click on the (+) to add an Authorization Provider, and choose the 'Web' option.


Enter the name of the authorization (for example, user login), the store front title (for example 'Login to view content for free'), and the authorization provider URL.


Once created, and when opening for Edit mode, you will notice that the Applicaster server has given you a random secret key.
Please use this secret key on your servers as well in order to make sure we are able to authenticate your security token (as described in above sections).


  1. #NET
  2. JAVA
  3. PHP
  4. Ruby

results matching ""

    No results matching ""