🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

blobby-auth-header

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blobby-auth-header

HTTP Authorization client for Blobby

0.2.0
latest
Source
npm
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

blobby-auth-header

An HTTP Authorization client for Blobby to enable secure API operations.

Options

# config/local.js
module.exports = {
  auth: {
    apiKey: {
      driver: 'blobby-auth-header',
      options: {
        apiKey: 'mySecretAPIKey that really belongs in a secure configuration file',
        test: /ApiKey\s(.*)/ // my custom Authorization header parser
      }
    }
  },
  storage: {
    myStorage: {
      driver: 'blobby-s3',
      auth: 'apiKey',
      options: {...} // see https://github.com/asilvas/blobby-s3 for S3 options
    }
  }
};
OptionTypeDefaultDesc
apiKeystring(required)Secret to access secure routes in Blobby REST API
testRegExp/apikey\s(.*)/iExpression used to parse HTTP Authorization header

Secrets

Recommended to store your apiKey in blobby's Secure Configuration.

Example Usage

Start my server:

blobby server

Upload a file:

curl -XPUT -H "Authorization: ApiKey mySecretAPIKey that really belongs in a secure configuration file" --data-binary "@./some-file.jpg" http://localhost/myStorage/some/file.jpg

FAQs

Package last updated on 03 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts