MCPcopy Create free account
hub / github.com/AzureAD/microsoft-authentication-library-for-python / _get_bindings

Method _get_bindings

msal/mex.py:104–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 './/sp2005:TransportBinding')
103
104 def _get_bindings(self):
105 bindings = {} # {binding_name: {"policy_uri": "...", "version": "..."}}
106 for binding in self.dom.findall("wsdl:binding", self.NS):
107 if (binding.find('soap12:binding', self.NS).get("transport") !=
108 'http://schemas.xmlsoap.org/soap/http'):
109 continue
110 action = binding.find(
111 'wsdl:operation/soap12:operation', self.NS).get("soapAction")
112 for pr in binding.findall("wsp:PolicyReference", self.NS):
113 bindings[binding.get("name")] = {
114 "policy_uri": pr.get("URI"), "action": action}
115 return bindings
116
117 def _get_endpoints(self, bindings, policy_ids):
118 endpoints = []

Calls 2

findMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected