Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 183 | | All time: 8,629 This week: 135 |
|
Description | | Author |
This class can send authenticated API requests using JWT.
It takes a user name and password and obtains a JSON Web Token from a API Web server.
The class can also send authenticated requests to a specified API URL passing given parameters and the previously obtained JSON Web Token. Innovation Award
 June 2017
Number 10 |
JWT (JSON Web Token) is an object represented as a JSON string that contains information to be transmitted securely between two parties.
This class can obtain a JSON Web Token from a server obtained by password based authenticated.
It will be use to send authenticated requests to an API server.
Manuel Lemos |
| |
 |
|
Innovation award
 Nominee: 1x |
|
Details
README
JWT Api Base is a simple wrapper class for handling JWT auth and endpoint requests.
Configure
Modify the first few lines to define the api base auth URL for your JWT-auth enabled API, if needed change the username and password parameters to mirror the username and password fields required by your API provider.
For example:
define("URL_SUFFIX_AUTH", 'api-auth/');
define("PARAM_USERNAME", 'username');
define("PARAM_PASSWORD", 'password');
Changes to:
define("URL_SUFFIX_AUTH", 'jwt-auth/');
define("PARAM_USERNAME", 'user');
define("PARAM_PASSWORD", 'pass');
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.