Skip to content

[gatsby-source-wordpress] Fetch protected endpoints #3063

@ivorpad

Description

@ivorpad

Hi first of all thanks for GatsbyJS!

I'm looking into the auth option log into WordPress and query protected endpoints like /wp-json/wp/v2/users/me but I just can't wrap my head around it.

Unfortunately the comment is confusing: If auth.user and auth.pass are filled, then the source plugin will be allowed to access endpoints that are protected with .htaccess.

auth: {
 htaccess_user: "",
 htaccess_pass: "",
 htaccess_sendImmediately: false,
},

Any help will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions