| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
REST API: allow override of creation and update dates
|
| |
| |
| |
| |
| |
| |
| | |
Note that if they're not provided, default behaviour will apply:
creation and update dates will be autogenerated, and not empty.
Fixes #1223
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
| |
The hoster writes the environment variable with bearer token to
REDIRECT_HTTP_AUTHORIZATION and needs to provide RewriteBase / to
.htaccess
|
| |
|
|
|
|
|
| |
Including a bunch of improvements on the container,
and helper used across new controllers.
|
|
|
|
| |
See https://github.com/shaarli/Shaarli/issues/1307
|
|
|
|
|
|
|
|
| |
Bump PHPUnit version and fix unit test
- Globals are handled differently and are persistent through tests
- Tests without assertions are marked as risky: some of them are just
meant to check that no error is raised.
|
|\
| |
| | |
Do not try to retrieve thumbnails for internal link
|
| |
| |
| |
| | |
Also adds a helper function to determine if a link is a note and apply it across multiple files.
|
|/
|
|
| |
Fixes #1239
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Endpoints:
* List All Tags [GET]
* Get a tag [GET]
* Update a tag [PUT]
* Delete a tag [DELETE]
Fixes #904
References shaarli/api-documentation#34
|
|
|
|
| |
See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
|
| |
|
|
|
|
| |
CHANGED: datetime is now store as an object in history store file
|
|
|
|
| |
See http://shaarli.github.io/api-documentation/#links-history-get
|
|
|
|
|
|
| |
Based on #840
See http://shaarli.github.io/api-documentation/\#links-link-delete
|
|
|
|
|
| |
* Related to #609
* Documentation: http://shaarli.github.io/api-documentation/#links-link-put
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Namespaces have been introduced with the REST API, and should be generalized
to the whole codebase to manage object scope and benefit from autoloading.
See:
- https://secure.php.net/manual/en/language.namespaces.php
- http://www.php-fig.org/psr/psr-4/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
See http://shaarli.github.io/api-documentation/#links-link-get
|
| |
|
|
|
|
|
|
| |
No update regarding the UI or the API for now
Fixes #758
|
|\
| |
| | |
REST API: implement getLinks service
|
| |
| |
| |
| | |
See http://shaarli.github.io/api-documentation/#links-links-collection-get
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to https://github.com/shaarli/Shaarli/pull/731
Added:
- require the presence of the 'Authorization' header
Changed:
- use the HTTP Bearer Token authorization schema
See:
- https://jwt.io/introduction/#how-do-json-web-tokens-work-
- https://tools.ietf.org/html/rfc6750
- http://security.stackexchange.com/q/108662
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes https://github.com/shaarli/Shaarli/issues/737
Added:
- Base64Url utilities
Fixed:
- use URL-safe Base64 encoding/decoding functions
- use byte representations for HMAC digests
- all JWT parts are Base64Url-encoded
See:
- https://en.wikipedia.org/wiki/JSON_Web_Token
- https://tools.ietf.org/html/rfc7519
- https://scotch.io/tutorials/the-anatomy-of-a-json-web-token
- https://jwt.io/introduction/
- https://en.wikipedia.org/wiki/Base64#URL_applications
- https://secure.php.net/manual/en/function.base64-encode.php#103849
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
* REST API routes are handle by Slim.
* Every API controller go through ApiMiddleware which handles security.
* First service implemented `/info`, for tests purpose.
|