Skip to content

Add support for authentication #5

@developius

Description

@developius

Currently if the gateway is secured via basic auth, an error is thrown. Would be good to add support for this.

From a UX perspective, I reckon this would be good:

const OpenFaaS = require('openfaas')
const openfaas = new OpenFaaS('gateway:8080', {
    user: 'admin',
    password: 'secret'
})

Not sure how this works with got, it currently throws Basic authentication must be done with auth option but I can't find documentation for that specific option.

@austinfrey I can pick this up if you want?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions