This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import adal # type: ignore
16
16
import requests
17
+ from azure .cli .core .azclierror import AuthenticationError
17
18
from azure .common .client_factory import get_client_from_cli_profile
18
19
from azure .common .credentials import get_cli_profile
19
20
from azure .graphrbac import GraphRbacManagementClient
@@ -318,7 +319,7 @@ def add_application_password_impl(
318
319
body = password_request ,
319
320
)
320
321
return (str (key ), password ["secretText" ])
321
- except adal . AdalError :
322
+ except AuthenticationError :
322
323
return add_application_password_legacy (app_object_id , subscription_id )
323
324
324
325
@@ -376,7 +377,7 @@ def authorize_application(
376
377
}
377
378
},
378
379
)
379
- except adal . AdalError :
380
+ except AuthenticationError :
380
381
logger .warning ("*** Browse to: %s" , FIX_URL % onefuzz_app_id )
381
382
logger .warning ("*** Then add the client application %s" , registration_app_id )
382
383
@@ -543,7 +544,7 @@ def assign_app_role(
543
544
"appRoleId" : managed_node_role ["id" ],
544
545
},
545
546
)
546
- except adal . AdalError :
547
+ except AuthenticationError :
547
548
assign_app_role_manually (
548
549
onefuzz_instance_name , application_name , subscription_id , app_role
549
550
)
You can’t perform that action at this time.
0 commit comments