MCPcopy
hub / github.com/authlib/authlib / operator_or

Function operator_or

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

Source from the content-addressed store, hash-verified

109
110 @require_oauth(["profile", "email"])
111 def operator_or(request):
112 user = request.oauth_token.user
113 return JsonResponse(dict(sub=user.pk, username=user.username))
114
115 request = factory.get("/user", HTTP_AUTHORIZATION="bearer a1")
116 resp = operator_and(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…