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
Copy file name to clipboardExpand all lines: articles/javascript/how-to/with-web-app/static-web-app-with-swa-cli/introduction.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Intro: Create Static Web Apps using CLI"
3
3
description: Create a static web app (React and API) and locally develop using the SWA CLI. Run the same code locally and remotely to ensure that customers get the correct web behavior.
4
4
ms.topic: how-to
5
-
ms.date: 08/31/2021
5
+
ms.date: 10/19/2021
6
6
ms.custom: devx-track-js
7
7
#intent: Create Express.js web app with easy auth configured.
8
8
---
@@ -28,6 +28,17 @@ Complete sample code provided:
28
28
* Sample [basic app](https://github.com/Azure-Samples/js-e2e-static-web-app-with-cli/tree/1-basic-app-with-api) - on branch named `1-basic-app-with-api`
29
29
* Sample [basic app with auth](https://github.com/Azure-Samples/js-e2e-static-web-app-with-cli/tree/2-basic-app-with-api-and-auth) - on branch named `2-basic-app-with-api-and-auth`
30
30
31
+
32
+
## Authentication in this sample
33
+
34
+
The authentication in this sample provides:
35
+
* React client provides:
36
+
* Login/Logout
37
+
* Public and private routes based on user's authentication status
38
+
* Private route has access to API, `await fetch(`/api/hello?name=${name}`)`
39
+
40
+
This is an _easy auth_ implementation. The API can't act [_on behalf of_(OBO))[/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow] the logged in user. Acting on behalf of the user requires more configuration both in the Azure Active Directory app and the Azure Identity SDK in the API.
0 commit comments