From 5d9b2211a5bd9e18e05b6ce77f139bac9b7c17da Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Fri, 2 Feb 2024 16:39:36 -0800 Subject: [PATCH] Give a hint on where the client_id came from --- sample/confidential_client_certificate_sample.py | 2 +- sample/confidential_client_secret_sample.py | 2 +- sample/device_flow_sample.py | 2 +- sample/interactive_sample.py | 2 +- sample/migrate_rt.py | 2 +- sample/username_password_sample.py | 2 +- sample/vault_jwt_sample.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sample/confidential_client_certificate_sample.py b/sample/confidential_client_certificate_sample.py index 93c72ee9..c8c5f3c6 100644 --- a/sample/confidential_client_certificate_sample.py +++ b/sample/confidential_client_certificate_sample.py @@ -3,7 +3,7 @@ { "authority": "https://login.microsoftonline.com/Enter_the_Tenant_Name_Here", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "scope": ["https://graph.microsoft.com/.default"], // Specific to Client Credentials Grant i.e. acquire_token_for_client(), // you don't specify, in the code, the individual scopes you want to access. diff --git a/sample/confidential_client_secret_sample.py b/sample/confidential_client_secret_sample.py index 9c616d53..48948ff5 100644 --- a/sample/confidential_client_secret_sample.py +++ b/sample/confidential_client_secret_sample.py @@ -3,7 +3,7 @@ { "authority": "https://login.microsoftonline.com/Enter_the_Tenant_Name_Here", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "scope": ["https://graph.microsoft.com/.default"], // Specific to Client Credentials Grant i.e. acquire_token_for_client(), // you don't specify, in the code, the individual scopes you want to access. diff --git a/sample/device_flow_sample.py b/sample/device_flow_sample.py index 89dccd1c..816bbb18 100644 --- a/sample/device_flow_sample.py +++ b/sample/device_flow_sample.py @@ -3,7 +3,7 @@ { "authority": "https://login.microsoftonline.com/common", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "scope": ["User.ReadBasic.All"], // You can find the other permission names from this document // https://docs.microsoft.com/en-us/graph/permissions-reference diff --git a/sample/interactive_sample.py b/sample/interactive_sample.py index f283ed29..f4feb6ec 100644 --- a/sample/interactive_sample.py +++ b/sample/interactive_sample.py @@ -6,7 +6,7 @@ { "authority": "https://login.microsoftonline.com/organizations", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "scope": ["User.ReadBasic.All"], // You can find the other permission names from this document // https://docs.microsoft.com/en-us/graph/permissions-reference diff --git a/sample/migrate_rt.py b/sample/migrate_rt.py index ed0011ed..e854866d 100644 --- a/sample/migrate_rt.py +++ b/sample/migrate_rt.py @@ -3,7 +3,7 @@ { "authority": "https://login.microsoftonline.com/organizations", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "scope": ["User.ReadBasic.All"], // You can find the other permission names from this document // https://docs.microsoft.com/en-us/graph/permissions-reference diff --git a/sample/username_password_sample.py b/sample/username_password_sample.py index a25407d0..25e49ffd 100644 --- a/sample/username_password_sample.py +++ b/sample/username_password_sample.py @@ -3,7 +3,7 @@ { "authority": "https://login.microsoftonline.com/organizations", - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", "username": "your_username@your_tenant.com", "password": "This is a sample only. You better NOT persist your password.", "scope": ["User.ReadBasic.All"], diff --git a/sample/vault_jwt_sample.py b/sample/vault_jwt_sample.py index 9410039c..e2448fc7 100644 --- a/sample/vault_jwt_sample.py +++ b/sample/vault_jwt_sample.py @@ -3,7 +3,7 @@ { "tenant": "your_tenant_name", // Your target tenant, DNS name - "client_id": "your_client_id", + "client_id": "your_client_id came from https://learn.microsoft.com/entra/identity-platform/quickstart-register-app", // Target app ID in Azure AD "scope": ["https://graph.microsoft.com/.default"], // Specific to Client Credentials Grant i.e. acquire_token_for_client(),