RAPP Platform API
|
Public Member Functions | |
def | __init__ |
Constructor. More... | |
def | __call__ |
Append the application token to the HTTP application protocol header. More... | |
Private Member Functions | |
def | __load_token |
Load the RAPP Platform authentication token. More... | |
def | __read_token_from_file |
Read and token string stored in a file. More... | |
Private Attributes | |
_token | |
_tokenStoreDir | |
RAPP Authentication Class Implements the RAPP Authentication mechanism for Platform requests.
Definition at line 34 of file RAPPAuth.py.
def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__init__ | ( | self, | |
token = '' , |
|||
svcname = '' |
|||
) |
Constructor.
string | token |
string | svcname - The service/application name. |
Definition at line 40 of file RAPPAuth.py.
def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__call__ | ( | self, | |
r | |||
) |
Append the application token to the HTTP application protocol header.
Modify the request object. Append token string to the Accept-Token field of the request header.
Definition at line 55 of file RAPPAuth.py.
|
private |
Load the RAPP Platform authentication token.
Currently only one application token exists, giving access to all the RAPP Platform services!!
Definition at line 65 of file RAPPAuth.py.
|
private |
Read and token string stored in a file.
filepath | string - The token file path. |
Definition at line 75 of file RAPPAuth.py.
|
private |
Definition at line 50 of file RAPPAuth.py.
|
private |
Definition at line 47 of file RAPPAuth.py.