File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2727
2828import uuid
2929from datetime import datetime , timedelta
30- import re
3130import logging
3231
3332import requests
@@ -44,11 +43,9 @@ def send_request(
4443 if not endpoint_address :
4544 raise ValueError ("WsTrust endpoint address can not be empty" )
4645 if soap_action is None :
47- wstrust2005_regex = r'[/trust]?[2005][/usernamemixed]?'
48- wstrust13_regex = r'[/trust]?[13][/usernamemixed]?'
49- if re .search (wstrust2005_regex , endpoint_address ):
46+ if '/trust/2005/usernamemixed' in endpoint_address :
5047 soap_action = Mex .ACTION_2005
51- elif re . search ( wstrust13_regex , endpoint_address ) :
48+ elif '/trust/13/usernamemixed' in endpoint_address :
5249 soap_action = Mex .ACTION_13
5350 assert soap_action in (Mex .ACTION_13 , Mex .ACTION_2005 ) # A loose check here
5451 data = _build_rst (
You can’t perform that action at this time.
0 commit comments