summaryrefslogtreecommitdiff
path: root/lib/gitlab/lfs_token.rb
Commit message (Collapse)AuthorAgeFilesLines
* Handle LFS token creation and retrieval in the same method, and in the same ↵lfs-ssh-authorization-fixPatricio Cano2016-09-281-12/+9
| | | | | | Redis connection. Reset expiry time of token, if token is retrieved again before it expires.
* Do not regenerate the `lfs_token` every time `git-lfs-authenticate` is ↵Patricio Cano2016-09-271-0/+2
| | | | called, instead return the saved token if one is present.
* Revert "Revert all changes introduced by ↵lfs-supportKamil Trzcinski2016-09-191-0/+54
| | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043" This reverts commit 6d43c95b7011ec7ec4600e00bdc8df76bb39813c.
* Revert all changes introduced by ↵Kamil Trzcinski2016-09-191-54/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043
* Support pushing via SSHKamil Trzcinski2016-09-191-0/+4
|
* Refactored authentication code to make it a bit clearer, added test for ↵Patricio Cano2016-09-151-1/+1
| | | | wrong SSH key.
* Further refactoring of authentication code, and code style fixes.Patricio Cano2016-09-151-13/+9
|
* Use special characters for `lfs+deploy-key` to prevent a someone from ↵Patricio Cano2016-09-151-1/+1
| | | | creating a user with this username, and method name refactoring.
* Better authentication handling, syntax fixes and better actor handling for ↵Patricio Cano2016-09-151-3/+18
| | | | LFS Tokens
* Refactored handling of the `LfsToken` and added functionality to it to ↵Patricio Cano2016-09-151-0/+8
| | | | simplify external code.
* Refactored LFS auth logic when using SSH to use its own API endpoint ↵Patricio Cano2016-09-151-3/+5
| | | | `/lfs_authenticate` and added tests.
* Refactor LFS token logic to use a Redis key instead of a DB field, making it ↵Patricio Cano2016-09-151-0/+29
a 1 use only token.