Skip to content

Commit

Permalink
add MSAL.net logging to most dev apps (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Dec 15, 2020
1 parent 780fab6 commit cb6369b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
10 changes: 6 additions & 4 deletions tests/B2CWebAppCallsWebApi/Client/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"SignUpSignInPolicyId": "b2c_1_susi_v3",
"ResetPasswordPolicyId": "b2c_1_reset_v3",
"EditProfilePolicyId": "b2c_1_edit_profile", // Optional profile editing policy
"ClientSecret": "secret-here"
"ClientSecret": "secret-goes-here",
"EnablePiiLogging": true
//"CallbackPath": "/signin/B2C_1_sign_up_in" // defaults to /signin-oidc
},
"TodoList": {
Expand All @@ -24,9 +25,10 @@
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.Identity.Web": "Information"
}
},
"AllowedHosts": "*"
Expand Down
8 changes: 5 additions & 3 deletions tests/BlazorServerCallsGraph/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"ClientId": "86699d80-dd21-476a-bcd1-7c1a3d471f75",
"CallbackPath": "/signin-oidc",
"SignedOutCallbackPath ": "/signout-callback-oidc",
"EnablePiiLogging": true,
// To call an API
"ClientSecret": "secret-goes-here"
},
"ClientSecret": "secret"
},
"GraphBeta": {
"BaseUrl": "https://graph.microsoft.com/beta",
"Scopes": "user.read"
Expand All @@ -21,7 +22,8 @@
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.Identity.Web": "Information"
}
},
"AllowedHosts": "*",
Expand Down
6 changes: 4 additions & 2 deletions tests/WebAppCallsWebApiCallsGraph/Client/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"ClientId": "86699d80-dd21-476a-bcd1-7c1a3d471f75",
"CallbackPath": "/signin-oidc",
"SignedOutCallbackPath ": "/signout-callback-oidc",
"EnablePiiLogging": true,

// To call an API
// "ClientSecret": "[Copy the client secret added to the app from the Azure portal]",
"ClientSecret": "secret"
//"ClientCertificates": [
// {
// "SourceType": "",
Expand All @@ -32,7 +33,8 @@
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.Identity.Web": "Information"
}
},
"AllowedHosts": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Domain": "msidentitysamplestesting.onmicrosoft.com",
"TenantId": "7f58f645-c190-4ce5-9de4-e2b7acd2a6ab",
"ClientId": "a4c2469b-cf84-4145-8f5f-cb7bacf814bc",
"ClientSecret": "[Copy the client secret added to the app from the Azure portal]"
"ClientSecret": "secret"
},
"Kestrel": {
"Endpoints": {
Expand Down
10 changes: 6 additions & 4 deletions tests/blazorserver2-b2c-callswebapi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"ClientId": "fdb91ff5-5ce6-41f3-bdbd-8267c817015d",
"CallbackPath": "/signin-oidc",
"SignedOutCallbackPath ": "/signout-callback-oidc",
"SignUpSignInPolicyId": "b2c_1_susi",
"ResetPasswordPolicyId": "b2c_1_reset",
"SignUpSignInPolicyId": "b2c_1_susi_v3",
"ResetPasswordPolicyId": "b2c_1_reset_v3",
"EditProfilePolicyId": "b2c_1_edit_profile", // Optional profile editing policy
"EnablePiiLogging": true,

// To call an API
"ClientSecret": "secret"
"ClientSecret": "secret-goes-here"
},
"CalledApi": {
"Scopes": "https://fabrikamb2c.onmicrosoft.com/tasks/read",
Expand All @@ -20,7 +21,8 @@
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.Identity.Web": "Information"
}
},
"AllowedHosts": "*"
Expand Down

0 comments on commit cb6369b

Please sign in to comment.