From a16ddf821e92332973d2e0d15b9bd153261c015d Mon Sep 17 00:00:00 2001 From: MikeHookTransparity <140596491+MikeHookTransparity@users.noreply.github.com> Date: Wed, 1 May 2024 14:45:07 +0000 Subject: [PATCH] Update appsettings.json Scopes as arrays do not work with RequiredScope attribute. They should be strings with each scope separated by a space. --- .../2-call-api-b2c/API/TodoListAPI/appsettings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3-Authorization-II/2-call-api-b2c/API/TodoListAPI/appsettings.json b/3-Authorization-II/2-call-api-b2c/API/TodoListAPI/appsettings.json index 0b146bbf..8bdbb018 100644 --- a/3-Authorization-II/2-call-api-b2c/API/TodoListAPI/appsettings.json +++ b/3-Authorization-II/2-call-api-b2c/API/TodoListAPI/appsettings.json @@ -5,8 +5,8 @@ "Domain": "fabrikamb2c.onmicrosoft.com", "SignUpSignInPolicyId": "b2c_1_susi_v2", "Scopes": { - "Read": [ "ToDoList.Read", "ToDoList.ReadWrite" ], - "Write": [ "ToDoList.ReadWrite" ] + "Read": "ToDoList.Read ToDoList.ReadWrite", + "Write": "ToDoList.ReadWrite" } }, "https_port": 44351,