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

Feature 402 #1269

Merged
merged 2 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arkid/core/extension/app_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from arkid.core.extension import Extension
from arkid.core.translation import gettext_default as _
from arkid.core import api as core_api, event as core_event
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt

import urllib.parse

Expand Down Expand Up @@ -90,6 +92,7 @@ def register_enter_view(self, view:View, path:str, url_name:str, type:list, tena
response: 函数执行结果
'''
# 入口函数
@method_decorator(csrf_exempt, name="dispatch")
class EnterView(View):

def get(self, request, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions oauth2_provider/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def post(self, request, *args, **kwargs):
else:
return super().post(request, *args, **kwargs)


def get(self, request, *args, **kwargs):
try:
scopes, credentials = self.validate_authorization_request(request)
Expand Down