Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Merge branch 'master' into feature/extending_app_support

Maciej Korycinski1db2afaf3657
diff --cc saleor/graphql/schema.graphql
index 7edb6b7537,26a069198a..49c290bcc5
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@@ -2579,15 -2485,13 +2588,19 @@@ type Mutation
appTokenCreate(input: AppTokenInput!): AppTokenCreate
appTokenDelete(id: ID!): AppTokenDelete
appTokenVerify(token: String!): AppTokenVerify
+ appInstall(input: AppInstallInput!): AppInstall
+ appRetryInstall(activateAfterInstallation: Boolean = true, id: ID!): AppRetryInstall
+ appDeleteFailedInstallation(id: ID!): AppDeleteFailedInstallation
+ appFetchManifest(manifestUrl: String!): AppFetchManifest
+ appActivate(id: ID!): AppActivate
+ appDeactivate(id: ID!): AppDeactivate
+ tokenCreate(email: String!, password: String!): CreateToken
+ tokenRefresh(csrfToken: String, refreshToken: String): RefreshToken
+ tokenVerify(token: String!): VerifyToken
+ tokensDeactivateAll: DeactivateAllUserTokens
requestPasswordReset(email: String!, redirectUrl: String!): RequestPasswordReset
confirmAccount(email: String!, token: String!): ConfirmAccount
- setPassword(token: String!, email: String!, password: String!): SetPassword
+ setPassword(email: String!, password: String!, token: String!): SetPassword
passwordChange(newPassword: String!, oldPassword: String!): PasswordChange
requestEmailChange(newEmail: String!, password: String!, redirectUrl: String!): RequestEmailChange
confirmEmailChange(token: String!): ConfirmEmailChange
diff --cc saleor/graphql/tests/fixtures.py
index a8aa0a2771,fde6cf06f4..f510a2b3e8
--- a/saleor/graphql/tests/fixtures.py
+++ b/saleor/graphql/tests/fixtures.py
@@@ -7,9 -7,10 +7,9 @@@ from django.contrib.auth.models import
from django.core.serializers.json import DjangoJSONEncoder
from django.shortcuts import reverse
from django.test.client import MULTIPART_CONTENT, Client
- from graphql_jwt.shortcuts import get_token
from ...account.models import User
-from ...app.models import App
+ from ...core.jwt import create_access_token
from ...tests.utils import flush_post_commit_hooks
from ..views import handled_errors_logger, unhandled_errors_logger
from .utils import assert_no_permission
diff --cc saleor/graphql/webhook/resolvers.py
index d8b78de274,9624bdc687..840291266c
--- a/saleor/graphql/webhook/resolvers.py
+++ b/saleor/graphql/webhook/resolvers.py
@@@ -1,7 -1,7 +1,7 @@@
import graphene
- from graphql_jwt.exceptions import PermissionDenied
+ from ...core.exceptions import PermissionDenied
-from ...core.permissions import WebhookPermissions
+from ...core.permissions import AppPermission
from ...webhook import models, payloads
from ...webhook.event_types import WebhookEventType
from .types import Webhook, WebhookEvent