laardee / serverless-authentication-boilerplate

Generic authentication boilerplate for Serverless framework
http://laardee.github.io/serverless-authentication-gh-pages
MIT License
569 stars 72 forks source link

Set headers for a custom provider #46

Open aktary opened 7 years ago

aktary commented 7 years ago

I'm using a version of this to access the Harvest API and it requires that for a profile request, the Content-Type and Accept headers be set. As written, serverless-authentication/lib/providers.js doesn't provide for the capability to set special headers for a custom provider.