public interface AppAuthorisation
Interface for classes that combine details of an an app with details of an account, providing account details
and authentication headers for BrightpearlApiClient.
This interface is generic enough to support all four types of app, which each require different headers, together with legacy auth tokens.
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_TOKEN_HEADER |
static String |
APP_HEADER |
static String |
DEV_HEADER |
static String |
LEGACY_AUTH_HEADER |
static String |
STAFF_TOKEN_HEADER |
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount()
Returns the Brightpearl customer's account.
|
Map<String,String> |
getHeaders()
Returns authentication headers required for requests made to the customer's account.
|
static final String DEV_HEADER
static final String APP_HEADER
static final String ACCOUNT_TOKEN_HEADER
static final String STAFF_TOKEN_HEADER
static final String LEGACY_AUTH_HEADER
Copyright © 2014. All Rights Reserved.