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

Method get_allowed_scope

tests/django/test_oauth2/models.py:40–44  ·  view source on GitHub ↗
(self, scope)

Source from the content-addressed store, hash-verified

38 return self.default_redirect_uri
39
40 def get_allowed_scope(self, scope):
41 if not scope:
42 return ""
43 allowed = set(scope_to_list(self.scope))
44 return list_to_scope([s for s in scope.split() if s in allowed])
45
46 def check_redirect_uri(self, redirect_uri):
47 if redirect_uri == self.default_redirect_uri:

Callers

nothing calls this directly

Calls 2

scope_to_listFunction · 0.90
list_to_scopeFunction · 0.90

Tested by

no test coverage detected