featherbed icon indicating copy to clipboard operation
featherbed copied to clipboard

Add authentication framework

Open jeremyrsmith opened this issue 9 years ago • 2 comments

  • Add the ability to place filters before the HTTP service, configurable at the request level
  • Add the concept of an Authorizer, which is just a filter.
  • Add some initial Authorizers - Bearer (for pre-shared Bearer tokens) and MAC (for pre-shared MAC tokens)

A future PR should contain a full OAuth2 flow implemented in an Authorizer.

jeremyrsmith avatar Oct 04 '16 19:10 jeremyrsmith

Current coverage is 54.48% (diff: 20.23%)

Merging #44 into master will decrease coverage by 8.87%

@@             master        #44   diff @@
==========================================
  Files             9         10     +1   
  Lines           262        312    +50   
  Methods         259        308    +49   
  Messages          0          0          
  Branches          3          4     +1   
==========================================
+ Hits            166        170     +4   
- Misses           96        142    +46   
  Partials          0          0          

Powered by Codecov. Last update bdecef0...e747ec5

codecov-io avatar Oct 04 '16 21:10 codecov-io

@jeremyrsmith is it possible to write a test for Bearer and MAC authorizers?

ilya-murzinov avatar Oct 18 '16 21:10 ilya-murzinov