MCPcopy Index your code
hub / github.com/authlib/authlib / operator_and

Function operator_and

tests/django/test_oauth2/test_resource_protector.py:106–108  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

104def test_scope_operator(factory, token):
105 @require_oauth(["profile email"])
106 def operator_and(request):
107 user = request.oauth_token.user
108 return JsonResponse(dict(sub=user.pk, username=user.username))
109
110 @require_oauth(["profile", "email"])
111 def operator_or(request):

Callers 1

test_scope_operatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…