aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Entity
Commit message (Collapse)AuthorAgeFilesLines
* Cascade delete on oauth2 table when deleting a userJeremy Benoist2019-05-103-0/+3
|
* Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-01-151-1/+1
|\
| * Cast client id to avoid PG errorJeremy Benoist2019-01-091-1/+1
| | | | | | | | If someone send a malformated client_id when trying to authenticate using the API we got a 500 if wallabag use postgres because the request send a string instead of an integer.
* | Fix utf8mb4 on vendor tablesJeremy Benoist2018-11-283-0/+48
|/ | | | | | | | | | | | | | When creating the schema for test these tables use default length for string: 255. Which fail when using utf8mb4. > Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes Also move the `setKeepStaticConnections` in before and after class to avoid: > SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-2/+2
|
* Create a client when creating a user using the apiJeremy Benoist2017-06-071-0/+23
| | | | | | | | While creating a new user using the API, we also create a new client for the current user. So the app which just create the user can use its newly created client to configure the app. That new client is only return after creating the user. When calling the endpoint /api/user to get user information, the new client information won’t be return.
* Be consistent between migration & schema definitionJeremy Benoist2016-12-191-1/+1
|
* Added relation between API Client and UserNicolas Lœuillet2016-10-241-1/+16
| | | | Fix #2062
* Fix entities definitionJeremy Benoist2016-10-092-2/+2
| | | | | | | | As per Doctrine said in the debug tool bar: - The field Wallabag\ApiBundle\Entity\Client#refreshTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\RefreshToken#client does not contain the required 'inversedBy="refreshTokens"' attribute. - The field Wallabag\ApiBundle\Entity\Client#accessTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\AccessToken#client does not contain the required 'inversedBy="accessTokens"' attribute.
* Ensure access_token are removedJeremy Benoist2016-10-081-0/+5
| | | | | | | | When we remove the client, we should ensure that access_token are also removed. To ensure that, I created a test that generated an access_token. So when we remove the client, this association should be cascaded and shouldn’t generate an error. Also I moved some Api related stuff to the ApiBundle (like the developer controler and ClientType form)
* Changed relation between API client and refresh tokenNicolas Lœuillet2016-10-031-0/+5
| | | | Fix #2350
* Added name on clientThomas Citharel2016-08-221-0/+31
| | | | | | | | - Fix typos in field name - Added migration for name field in API client table Manually cherry-picked from PR https://github.com/wallabag/wallabag/pull/2171
* Symfony Upgrade Fixer FTWJeremy Benoist2016-01-154-4/+4
| | | | symfony-upgrade-fixer fix src/Wallabag/
* remove old implementation for login/register/recoverNicolas Lœuillet2015-10-033-3/+3
|
* * public registrationNicolas Lœuillet2015-10-034-0/+118
* remove WSSE implementation * add oAuth2 implementation