File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ To authenticate using the client credential flow, you can do the following:
18
18
``` rust
19
19
use azure_identity :: client_credentials_flow;
20
20
use oauth2 :: {ClientId , ClientSecret };
21
- use url :: Url ;
22
21
23
22
use std :: env;
24
23
use std :: error :: Error ;
@@ -31,8 +30,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
31
30
env :: var (" CLIENT_SECRET" ). expect (" Missing CLIENT_SECRET environment variable." ),
32
31
);
33
32
let tenant_id = env :: var (" TENANT_ID" ). expect (" Missing TENANT_ID environment variable." );
34
- let subscription_id =
35
- env :: var (" SUBSCRIPTION_ID" ). expect (" Missing SUBSCRIPTION_ID environment variable." );
36
33
37
34
let client = reqwest :: Client :: new ();
38
35
// This will give you the final token to use in authorization.
You can’t perform that action at this time.
0 commit comments