Inserts the protocol scope prefix if required
(self, scope: str)
| 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 | |
| 210 | class MSGraphProtocol(Protocol): |