Skip to end of banner
Go to start of banner

Authentication

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 14 Next »

Introduction

The AminoTV API currently has three authentication schemes:

NamePurposePersistenceAuth Mechanism
Management APITo protect the endpoints that customer BSS integration usesN/AIP restriction
Client APIGeneral purpose API calls made by clients on behalf of usersCookie persisted serverĀ  sessionHTTP Digest
ServiceA layer of security that identifies the client itselfCookie persisted serverĀ  sessionHTTP Digest

Example client implementations

Java

Our upcoming AndroidTV SDK has support for logging in and managing service authentication.

Sample Java code
sdk.user().login("userName", "password")
    .subscribeOn(Schedulers.io())
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(
        response -> Toast.makeText(this, "Login successful", Toast.LENGTH_LONG).show(),
        t -> Log.e(TAG, "Failed to login", t)));

Javascript

The official AminoTV SDK has support for logging in and managing service authentication.

Please see the documentation at https://hybridteam.aminocom.com/sdk/api/modules/user/login

Sample Javascript code
sdk.user.login('me@example.com', '12345678')
  .then(() => {
    // Login successful
  })
  .catch(error => {
    // Login failed
  });

Getting a cookie for manual testing with Postman or similar

  1. Use your web-browser to log in normally.
  2. Use the developer inspect tools to look at the headers sent to an API call.
  3. Copy the cookie that your browser sends (see image)
  4. Include that header in your test request too


  • No labels