Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

require authentication to all #2497

Description

@tgaff2x

I'm setting up a "private" site for a client whereby user must be authenticated to access content.

Is there a recommended approach to require authentication all end points?

For example, attempting to access GET /wp/v2/pages without auth would return the 401/sorry type message

Activity

  1. danielbachhuber commented on May 13, 2016

    @danielbachhuber
    Member

    Is there a recommended approach to require authentication all end points?

    You'll just need to intercept all requests with something like this: https://gist.github.com/danielbachhuber/8f92af4c6a8db784771c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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