summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dfc650a)
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
<?php
namespace Shaarli\Api;
<?php
namespace Shaarli\Api;
+use Shaarli\Http\Base64Url;
use Shaarli\Api\Exceptions\ApiAuthorizationException;
/**
use Shaarli\Api\Exceptions\ApiAuthorizationException;
/**
/**
* Validates a JWT token authenticity.
*
/**
* Validates a JWT token authenticity.
*
- * @param string $token JWT token extracted from the headers.
+ * @param string $token JWT token extracted from the headers.
* @param string $secret API secret set in the settings.
*
* @throws ApiAuthorizationException the token is not valid.
* @param string $secret API secret set in the settings.
*
* @throws ApiAuthorizationException the token is not valid.
/**
* Format a Link for the REST API.
*
/**
* Format a Link for the REST API.
*
- * @param array $link Link data read from the datastore.
+ * @param array $link Link data read from the datastore.
* @param string $indexUrl Shaarli's index URL (used for relative URL).
*
* @return array Link data formatted for the REST API.
* @param string $indexUrl Shaarli's index URL (used for relative URL).
*
* @return array Link data formatted for the REST API.
/**
* URL-safe Base64 operations
/**
* URL-safe Base64 operations
"Shaarli\\Config\\Exception\\": "application/config/exception",
"Shaarli\\Exceptions\\": "application/exceptions",
"Shaarli\\Feed\\": "application/feed",
"Shaarli\\Config\\Exception\\": "application/config/exception",
"Shaarli\\Exceptions\\": "application/exceptions",
"Shaarli\\Feed\\": "application/feed",
+ "Shaarli\\Http\\": "application/http",
"Shaarli\\Security\\": "application/security"
}
}
"Shaarli\\Security\\": "application/security"
}
}
+use Shaarli\Http\Base64Url;