vinceh121
b5a33d2e42
Listen address in config
...
Signed-off-by: vinceh121 <contact@vinceh121.me>
2021-05-19 14:32:02 +02:00
Rahul Rudragoudar
6f38a77c2f
Support to specify config file
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-05-02 16:57:12 +05:30
Rahul Rudragoudar
4612dfa1cd
Migrate to HttpServer ( #76 )
...
* Migrate to Fibry
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Improve error handling
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update models and fields
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Enable fibry server
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update .gitignore
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Convert captcha class to object
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Rollback error handling
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update models
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Migrate to sun http server
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Refactor: Linter and formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Remove redundant dependancy
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-11 17:57:15 +05:30
Rahul Rudragoudar
070b862f25
Remove access methods
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-05 14:51:17 +05:30
Rahul Rudragoudar
600c7c5e8f
Add config support
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-02 21:31:07 +05:30
Rahul Rudragoudar
de50d8123e
Linter and Formatter support ( #58 )
...
* Add scala linter and formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add java formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add linter support
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Increase maxColumn limit
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Reformat and lint
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Minor reformatting
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add scala formatter on compile option
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Enable scala linter for CI
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-25 23:49:39 +05:30
Rahul Rudragoudar
6d04cdc3b4
Refactor modules ( #56 )
...
* Refactor:Modules
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add config file
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Restore sample images
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-24 15:21:16 +05:30
Rahul Rudragoudar
b16c2698d2
Fix issue in GC ( #54 )
...
* Update sql to map uuid to token
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Fix millis to secs conversion
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add synchronisation to media enpoint DB access
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change error code for rate limiter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* move prepared statements to Thread Local Storage
* Change test end points
* init GC
* Add GC
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change status return
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Auto generate token in db
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Remove user management and rate limiting
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add seed for random number generator
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Store random instance as class member
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update locustfile
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add API documentation
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Move updateTimeStamp to getChallenge methdod
Remove user tables for the DB
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update Timestamp when creating mapId entry
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add request method type
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Minor fixes
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Fix issue in GC
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change db directory
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update locust test
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update .gitignore
2021-02-16 16:02:57 +05:30
Rahul Rudragoudar
5c3bdfeb83
GC, Seed and User management ( #52 )
...
* Update sql to map uuid to token
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Fix millis to secs conversion
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add synchronisation to media enpoint DB access
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change error code for rate limiter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* move prepared statements to Thread Local Storage
* Change test end points
* init GC
* Add GC
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change status return
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Auto generate token in db
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Remove user management and rate limiting
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add seed for random number generator
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Store random instance as class member
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update locustfile
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add API documentation
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Move updateTimeStamp to getChallenge methdod
Remove user tables for the DB
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update Timestamp when creating mapId entry
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add request method type
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Minor fixes
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2020-09-23 22:58:42 +05:30
hrj
9af66adf9f
refactor: don't inherit classes from DBConn
2020-07-16 17:53:26 +05:30
hrj
f08f6041ec
renaming and removal of unused code
2020-07-16 17:23:48 +05:30
Rahul Rudragoudar
1d7ef512bd
DB synchronisation on media endpoint ( #47 )
...
* Update sql to map uuid to token
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Fix millis to secs conversion
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add synchronisation to media enpoint DB access
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change error code for rate limiter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2020-07-08 21:28:11 +05:30
hrj
62b3a098bd
synchronise access to database statements
2020-07-05 00:50:05 +05:30
hrj
ab6abaf5c0
minor, formatting
2020-07-04 01:23:05 +05:30
hrj
239bf2cefc
gracefully handle wrong input from API
2020-07-03 22:16:23 +05:30
hrj
80ff9bfe6d
select a random captcha
2020-07-03 22:14:33 +05:30
hrj
03548d17ae
refactor, separate code into files
2020-07-03 20:21:35 +05:30
hrj
21dfbe310f
made db statements lazy
2020-06-30 00:20:07 +05:30
Rahul Rudragoudar
d65d050038
Minor fixes
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-06-20 11:45:29 +05:30
Rahul Rudragoudar
a63cf3976d
Add rate limiter
...
Add user validation for every request
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-06-17 00:20:18 +05:30
Rahul Rudragoudar
1a57942a0b
User validation for every request
...
Implemented a separate class for db connection, for the ease of accessing queries
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-06-13 00:48:29 +05:30
Rahul Rudragoudar
886055c642
Update query to cross refernce uuid to token
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-06-09 14:12:21 +05:30
Rahul Rudragoudar
7c7285b9f7
Conflict resolution
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-06-09 14:04:25 +05:30
hrj
6b35e53fe3
register raindrops captcha
2019-06-08 11:43:27 +05:30
hrj
b08f381f72
add an app to generate samples
2019-06-08 11:43:17 +05:30
hrj
c047691424
rename filters to providers
2019-06-08 11:07:36 +05:30
Rahul Rudragoudar
535c59a218
Merge branch 'mapId'
2019-04-07 22:36:23 +05:30
Rahul Rudragoudar
f3f8900fd4
Minor fixes
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 20:50:56 +05:30
Rahul Rudragoudar
ed05489cd0
Add UUID support
...
mapId table in implemented for mapping of public to private ID
Challenge returns a random UUID instead of captcha token
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 13:11:14 +05:30
Rahul Rudragoudar
fe9138dbaf
Add method to check for unsolved captchas
...
The framework checks for existing unsolved captchas before generating new captcha
The captcha is set to solved after the media is requested
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 10:49:34 +05:30
Rahul Rudragoudar
89a1039c87
Minor fixes
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 23:26:51 +05:30
Rahul Rudragoudar
184d167085
Add buffer to inital throttle
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 11:42:11 +05:30
Rahul Rudragoudar
37bf3b1d7f
Add Captcha thread throttle
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 11:30:06 +05:30
Rahul Rudragoudar
e18354c259
Add LabelCaptcha plugin
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-03-26 23:19:01 +05:30
Rahul Rudragoudar
8e99f2713d
Add method to choose random captcha
2019-03-26 18:44:31 +05:30
hrj
8f701f255e
Merge pull request #14 from PrajwalGoudar/master
...
added code to generate font fun captcha(type_1)
2019-03-13 10:12:39 +05:30
Rahul Rudragoudar
c43ffd6dd3
Added GET request support for media end point
2019-03-12 18:17:34 +05:30
Prajwal Goudar
bb9fa10d72
fixed issues
2019-03-09 16:23:56 +05:30
Rahul Rudragoudar
cddb143cf7
Added contentType:varchar field in db
2019-03-07 13:02:41 +05:30
Prajwal Goudar
994c5751ca
added code to generate font fun captcha(type_1)
...
added code to generate gif format captcha(type_2)
added code to generate shadow text captcha(type_3)
minor changes in Main.scala file to fix errors
2019-03-06 02:53:09 +05:30
hrj
d99b120b2c
redesign the challenge provider interface to be Java compatible
2019-03-05 17:49:20 +05:30
Rahul Rudragoudar
07a2f38065
Removed convertImage method
2019-02-26 21:10:46 +05:30
Rahul Rudragoudar
079fa0cd3d
Changed all end points to POST
...
Removed serialization of objects to db
Added Map to track providers
2019-02-23 22:11:31 +05:30
Rahul Rudragoudar
e52b87d72e
Added thread support
...
Added scheduleThreadPoolExecutor to run the thread periodically
2019-01-26 13:21:34 +05:30
Rahul Rudragoudar
77bc4c6ccf
Defined separate class for http endpoints
2018-12-28 23:41:21 +05:30
Rahul Rudragoudar
94200d10f2
Minor changes
2018-12-28 11:53:26 +05:30
Rahul Rudragoudar
eb8c8d272e
Added validation http end point
...
Added Object column in h2 db
2018-12-17 16:10:10 +05:30
Rahul Rudragoudar
3c6bcad7bb
Added captcha and media http end points
...
Added convertImage method
2018-12-17 13:36:36 +05:30
Sanjana Baliga
223808ba98
Minor fixes
...
- Used prepared statements and made them immutable
- Fixed indentation
2018-06-14 10:57:06 +05:30
sanjana
f73f2a762f
Initial commit for the framework
...
The ChallengeProvider trait provides the methods to be implemented by the challenge providers.
The framework gets a challenge from a challenge provider, inserts the details of the challenge into the database, and gives the challenge to the user. It then gets the answer from the user, and sends it to the challenge provider for verification.
This commit includes the implementation only for FilterChallenge provider.
2018-06-06 12:18:40 +05:30