Skip to content

feature: basic authentication #13

Description

@talss89

It would be really useful to add the ability to set up the client to use basic auth via:

Http::withBasicAuth($user, $password)

I've hacked something together, which extends Client with an auth method, and also exposes that method on the WordPress class, but not sure if this is the tidiest approach. It perhaps would be better to use .env / config as WORDPRESS_URL does.

Happy to work on this and submit a PR if we can agree on the correct approach!

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