Commit graph

14 commits

Author SHA1 Message Date
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +02:00
Maciej Szlosarczyk
966d668ac8
Return Origin url instead of, as requested by ops 2018-10-17 11:38:12 +03:00
Maciej Szlosarczyk
09e0a96b70
Ensure cors headers are also returned for other requests 2018-10-17 11:25:44 +03:00
Maciej Szlosarczyk
ad8dfcc28f
Make authentication errors more consistent with other errors 2018-08-07 14:52:33 +03:00
Maciej Szlosarczyk
c1ea79615f
Make API return errors array 2018-07-30 11:07:44 +03:00
Maciej Szlosarczyk
aac76b333c
Revert "Use inflector rule to acronym Api to API"
This reverts commit 06f5eb10d4.
2018-07-24 12:53:51 +03:00
Maciej Szlosarczyk
90b2455032
Fix codeclimate issues 2018-07-24 12:29:25 +03:00
Maciej Szlosarczyk
06f5eb10d4
Use inflector rule to acronym Api to API 2018-07-24 12:02:58 +03:00
Maciej Szlosarczyk
42004f933f
Add IP block on authentication via EID
Also, correct mistakenly used 403 error code.
Update aplication-example.yml to include new functionality.
2018-07-24 11:33:51 +03:00
Maciej Szlosarczyk
f92ece5467
Refactor common part of the find_or_create_by_x into a private method 2018-07-23 14:29:16 +03:00
Maciej Szlosarczyk
dc8230dcc2
Create AuthTokenCreator and AuthTokenDecryptor classes 2018-07-20 15:21:10 +03:00
Maciej Szlosarczyk
dad57ba528
Implement the basic interface for the Authentication endpoint
* Handle errors as 422
* Require parameters through strong_parameters
* Use a custom rescue_from
2018-07-19 16:20:58 +03:00
Maciej Szlosarczyk
1c6b838b2b
Add auth-token class 2018-07-19 10:31:31 +03:00
Maciej Szlosarczyk
d67e777ea8
Create a Registrant auth controller 2018-07-18 16:24:55 +03:00