File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ def complete(self, result):
45
45
46
46
def _convert_error (error , client_id ):
47
47
context = error .get_context () # Available since pymsalruntime 0.0.4
48
- if "AADSTS50011" in context : # In WAM, this could happen on both interactive and silent flows
48
+ if (
49
+ "AADSTS50011" in context # In WAM, this could happen on both interactive and silent flows
50
+ or "AADSTS7000218" in context # This "request body must contain ... client_secret" is just a symptom of current app has no WAM redirect_uri
51
+ ):
49
52
raise RedirectUriError ( # This would be seen by either the app developer or end user
50
53
"MsalRuntime won't work unless this one more redirect_uri is registered to current app: "
51
54
"ms-appx-web://Microsoft.AAD.BrokerPlugin/{}" .format (client_id ))
You can’t perform that action at this time.
0 commit comments