Wp-graphql-woocommerce: Consumer Key

Created on 21 Oct 2020  路  2Comments  路  Source: wp-graphql/wp-graphql-woocommerce

I've just install this plugin and got it all working, it's really useful! But doesn't it open access to everything? The woocommerce rest api uses a consumer key as a kind of application level permission so that only clients with the key can access it's endpoints, I don't see any such system in this plugin. Am I missing something here is there a similar thing in this plugin or is it not required?

question

Most helpful comment

Yes I was just going to post this. You're quite correct, I can't access any non-public data without authentication. Thanks for the quick answer. I really like this project 馃憤

All 2 comments

From my understanding, WPGraphQL adheres to common WordPress authentication and authorization best practices. Meaning, non-public data isn't exposed to unauthenticated users and their capabilities. Likewise, WPGraphQL checks for user capabilities during mutations.

Docs: https://docs.wpgraphql.com/guides/authentication-and-authorization/#authorization-with-wpgraphql

Yes I was just going to post this. You're quite correct, I can't access any non-public data without authentication. Thanks for the quick answer. I really like this project 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huniqcast picture huniqcast  路  4Comments

paplco picture paplco  路  4Comments

jake-101 picture jake-101  路  7Comments

zamson picture zamson  路  4Comments

dpacmittal picture dpacmittal  路  5Comments