Skip to content

Commit f017533

Browse files
committed
feedback
1 parent e5b226b commit f017533

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

articles/azure-fluid-relay/how-tos/azure-function-token-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ export class AzureFunctionTokenProvider implements ITokenProvider {
158158
## See also
159159

160160
- [Add custom data to an auth token](connect-fluid-azure-service.md#adding-custom-data-to-tokens)
161-
- [How to: Deploy Fluid applications using Azure Static Web Apps](./deploy-fluid-static-web-apps.md)
161+
- [How to: Deploy Fluid applications using Azure Static Web Apps](deploy-fluid-static-web-apps.md)

articles/azure-fluid-relay/how-tos/deploy-fluid-static-web-apps.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ ms.service: azure-fluid
1010

1111
# How to: Deploy Fluid applications using Azure Static Web Apps
1212

13-
This article demonstrates how to deploy Fluid apps using Azure Static Web Apps. The
14-
[FluidHelloWorld](https://github.com/microsoft/FluidHelloWorld/tree/main-azure) repository contains a Fluid application
15-
called **DiceRoller** that enables all connected clients to roll a dice and view the result. In this how-to, you deploy
16-
the DiceRoller application to Azure Static Web Apps using the Visual Studio Code extension.
13+
This article demonstrates how to deploy Fluid apps using Azure Static Web Apps. The [FluidHelloWorld](https://github.com/microsoft/FluidHelloWorld/tree/main-azure) repository contains a Fluid application called **DiceRoller** that enables all connected clients to roll a dice and view the result. In this how-to, you deploy the DiceRoller application to Azure Static Web Apps using the Visual Studio Code extension.
1714

1815
If you don't have an Azure subscription, [create a free trial account](https://azure.microsoft.com/free).
1916

@@ -30,18 +27,13 @@ If you don't have an Azure subscription, [create a free trial account](https://a
3027

3128
## Connect to Azure Fluid Relay Service
3229

33-
You can connect to Azure Fluid Relay service by providing the tenant ID and key that is uniquely generated for you when
34-
creating the Azure resource. You can build your own token provider implementation or you can use the two token provider implementations that the Fluid Framework provides:
35-
**InsecureTokenProvider** and **AzureFunctionTokenProvider**.
30+
You can connect to Azure Fluid Relay service by providing the tenant ID and key that is uniquely generated for you when creating the Azure resource. You can build your own token provider implementation or you can use the two token provider implementations that the Fluid Framework provides: **InsecureTokenProvider** and **AzureFunctionTokenProvider**.
3631

3732
To learn more about using InsecureTokenProvider for local development, see [Connecting to the service](connect-fluid-azure-service.md#connecting-to-the-service) and [Using InsecureTokenProvider for development](azure-function-token-provider.md#using-insecuretokenprovider-for-development).
3833

3934
### Using AzureFunctionTokenProvider
4035

41-
**AzureFunctionTokenProvider** is a token provider that does not expose the secret key in client-side code and can be
42-
used in production scenarios. This token provider implementation can be used to fetch a token from an HTTPS endpoint
43-
that is responsible for signing access tokens with the tenant key. This provides a secure way to generate the token and
44-
pass it back to the client app.
36+
**AzureFunctionTokenProvider** is a token provider that does not expose the secret key in client-side code and can be used in production scenarios. This token provider implementation can be used to fetch a token from an HTTPS endpoint that is responsible for signing access tokens with the tenant key. This provides a secure way to generate the token and pass it back to the client app.
4537

4638
```js
4739
import { AzureClient, AzureFunctionTokenProvider } from "@fluidframework/azure-client";
@@ -60,14 +52,11 @@ const clientProps = {
6052
const client = new AzureClient(clientProps);
6153
```
6254

63-
In order to use this token provider, you need to deploy an HTTPS endpoint that will sign tokens, and pass the URL
64-
to your endpoint to the AzureFunctionTokenProvider.
55+
In order to use this token provider, you need to deploy an HTTPS endpoint that will sign tokens, and pass the URL to your endpoint to the AzureFunctionTokenProvider.
6556

6657
### Deploying an Azure Function using Azure Static Web apps
6758

68-
Azure Static Web Apps allow you to develop a full-stack web site without needing to deal with the server-side
69-
configuration of an entire web hosting environment. You can deploy Azure Functions alongside your static website. Using
70-
this capability, you can deploy an HTTP-triggered Azure Function that will sign tokens.
59+
Azure Static Web Apps allow you to develop a full-stack web site without needing to deal with the server-side configuration of an entire web hosting environment. You can deploy Azure Functions alongside your static website. Using this capability, you can deploy an HTTP-triggered Azure Function that will sign tokens.
7160

7261
For more information about deploying Azure Function-powered APIs to your static web app see [Add an API to Azure Static Web Apps with Azure Functions](../../static-web-apps/add-api.md).
7362

@@ -93,8 +82,7 @@ const clientProps = {
9382
const client = new AzureClient(config);
9483
```
9584

96-
Run the `npm run build` command from the root directory to rebuild the app. This will generate a `dist` folder with the
97-
application code that should be deployed to the Static Web app.
85+
Run the `npm run build` command from the root directory to rebuild the app. This will generate a `dist` folder with the application code that should be deployed to the Static Web app.
9886

9987
[!INCLUDE [sign-in-extensions](../includes/sign-in-extensions.md)]
10088

@@ -152,9 +140,7 @@ application code that should be deployed to the Static Web app.
152140

153141
:::image type="content" source="../../static-web-apps/media/getting-started/extension-browse-site.png" alt-text="Browse site":::
154142

155-
1. The location of your application code, Azure Function, and build output is part of the
156-
`azure-static-web-apps-xxx-xxx-xxx.yml` workflow file located in the `/.github/workflows` directory. This
157-
file is automatically created when create the Static Web app. It defines a GitHub Action to build and deploy your Static Web app.
143+
1. The location of your application code, Azure Function, and build output is part of the `azure-static-web-apps-xxx-xxx-xxx.yml` workflow file located in the `/.github/workflows` directory. This file is automatically created when create the Static Web app. It defines a GitHub Action to build and deploy your Static Web app.
158144

159145

160146
## Clean up resources

0 commit comments

Comments
 (0)