Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scopeをチェックする #66

Merged
merged 3 commits into from Jul 30, 2020
Merged

Scopeをチェックする #66

merged 3 commits into from Jul 30, 2020

Conversation

kiy0taka
Copy link
Contributor

DocumentValidator の仕組みを使ってscopeをチェックするようにしました。

https://webonyx.github.io/graphql-php/security/

ref #62

@okazy
Copy link
Contributor

okazy commented Jul 29, 2020

コード確認しました。

現在 readwritequerymutation に対応していますが、 mutation でもデータの取得ができます。
mutation は、 readwrite の両方のスコープが必要なようにするか、 readwrite ではなく querymutation のスコープにする方が自然ではないでしょうか?

@kiy0taka
Copy link
Contributor Author

mutationread,write 両方必要にするよう対応しました。

@okazy okazy added the enhancement New feature or request label Jul 30, 2020
@okazy okazy added this to the 1.0 milestone Jul 30, 2020
Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作確認してscopeでアクセスを制限できることを確認しました。

@okazy okazy merged commit c76446c into EC-CUBE:master Jul 30, 2020
@okazy
Copy link
Contributor

okazy commented Jul 30, 2020

ありがとうございます!マージしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants