You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running and debugging the Azure Functions runtime locally, application settings are read from **local.settings.json**. Also, you can upload there settings to remote when you try to deploy Function App to Azure. Update this file with the connection string of the SignalR Service instance that you created earlier.
61
71
62
-
1. Open the file **local.settings.json** and update the settings.
72
+
1. Open the file **local.settings.json** and update the settings. (The file shown below is used by JavaScript sample, and the C# sample is similar)
63
73
64
74
```json
65
75
{
@@ -232,7 +242,25 @@ App Service Authentication supports authentication with Azure Active Directory,
232
242
233
243
### Update negotiate function
234
244
235
-
1. Update in `userId` in `negotiate/function.json` to `"{headers.x-ms-client-principal-name}"`
245
+
1. Update the attribute parameter of negotiate function.
246
+
247
+
- If you're using JavaScript sample, update in`userId`in`negotiate/function.json` to `"{headers.x-ms-client-principal-name}"`.
248
+
249
+
```json
250
+
{
251
+
"type": "signalRConnectionInfo",
252
+
"name": "connectionInfo",
253
+
"userId": "{headers.x-ms-client-principal-name}",
254
+
"hubName": "EventGridIntegrationSampleChat",
255
+
"direction": "in"
256
+
}
257
+
```
258
+
259
+
- If you're using C# sample, add parameter `UserId = "{headers.x-ms-signalr-userid}"` to `Negotiate` function.
0 commit comments