bcgov / MyGovBC-CAPTCHA-Service

A microservice for validating CAPTCHA and providing a token for non-robot assurance
Apache License 2.0
5 stars 2 forks source link

[WIP] Initial pull request for microservice. #2

Closed marklise closed 7 years ago

marklise commented 7 years ago

This is a first draft implementation of the captcha microservice. The basic endpoints are there as well there is route that is suitable for the ResourceAPI to leverage. It can be used to confirm valid JWT's generated by the Captcha Service provided that the SECRET environment variable is set appropriately inside each respective service.

The test.js script is an example client widget implementation. It needs to be run on a system capable of opening a browser (to display captcha) and asking for user feedback in the terminal that the "npm test" command was run.

Looking for feedback from @GregTurner / @sachmacd. Thanks for your :eyes: on this!