MCPcopy Index your code
hub / github.com/O365/python-o365 / prefix_scope

Method prefix_scope

O365/connection.py:202–207  ·  view source on GitHub ↗

Inserts the protocol scope prefix if required

(self, scope: str)

Source from the content-addressed store, hash-verified

200 return list(scopes)
201
202 def prefix_scope(self, scope: str) -> str:
203 """ Inserts the protocol scope prefix if required"""
204 if self.protocol_scope_prefix:
205 if not scope.startswith(self.protocol_scope_prefix):
206 return f'{self.protocol_scope_prefix}{scope}'
207 return scope
208
209
210class MSGraphProtocol(Protocol):

Callers 3

get_scopes_forMethod · 0.95
request_tokenMethod · 0.80
test_prefix_scopeMethod · 0.80

Calls 1

startswithMethod · 0.80

Tested by 1

test_prefix_scopeMethod · 0.64