Skip to content

Commit 905a22f

Browse files
Update UI js (#91)
* [GTD][Code Sample] React SPA Code Sample Update (ADO-54223) (#50) * react-spa-code-update * remove-files * update-products-tag * JS-updates * update-README --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 5253e4e commit 905a22f

File tree

10 files changed

+13
-6
lines changed

10 files changed

+13
-6
lines changed

angular-spa/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
<!-- Keeping yaml frontmatter commented out for now
12
---
23
# Metadata required by https://docs.microsoft.com/samples/browse/
34
# Metadata properties: https://review.docs.microsoft.com/help/contribute/samples/process/onboarding?branch=main#add-metadata-to-readme
45
languages:
56
- Javascript
67
page_type: sample
7-
name: Angular Single Page Application (SPA) that accesses Graph
8-
description: This Angular Single Page Application (SPA) accesses a protected route and makes a call to the Graph API as the user.
8+
name: "Angular Single Page Application (SPA) that accesses Graph"
9+
description: "This Angular Single Page Application (SPA) accesses a protected route and makes a call to the Graph API as the user."
910
products:
1011
- azure
1112
- azure-active-directory
1213
- ms-graph
1314
urlFragment: ms-identity-docs-javascript-angular-spa
1415
---
15-
16+
-->
17+
<!-- SAMPLE ID: DOCS-CODE-022 -->
1618
# Angular | web | user sign-in, protected web API access (Microsoft Graph) | Microsoft identity platform
1719

1820
<!-- Build badges here
@@ -75,7 +77,7 @@ ng serve --open
7577

7678
Follow the instructions that are presented on the web browser. If everything worked, you should receive a response similar to this on the "View Profile" page:
7779

78-
![Screenshot with profile information from Graph](./profile.png)
80+
![Screenshot with profile information from Graph](./readme-files/angular-spa-sign-in.png)
7981

8082
## About the code
8183

angular-spa/profile.png

-21.7 KB
Binary file not shown.
27.5 KB
Loading

angular-spa/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a class="navbar-brand" > Microsoft Identity Platform </a>
33
<a>
44
<button *ngIf="!loginDisplay" class="btn btn-secondary" (click)="login()">Sign In</button>
5-
<button *ngIf="loginDisplay" class="btn btn-secondary" (click)="logout()">Signout</button>
5+
<button *ngIf="loginDisplay" class="btn btn-secondary" (click)="logout()">Sign Out</button>
66
</a>
77
</a>
88
<a class="profileButton">

msal-client-credentials-flow/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ products:
1010
- azure
1111
- azure-active-directory
1212
- ms-graph
13+
- microsoft-identity-platform
1314
urlFragment: ms-identity-docs-code-webapi-nodejs-client-credentials-flow
1415
---
1516

protect-api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description: "This Node.js API protects its own protected endpoint using JWT sco
99
products:
1010
- azure
1111
- azure-active-directory
12+
- microsoft-identity-platform
1213
urlFragment: ms-identity-docs-code-web-api-nodejs
1314
---
1415

protect-function-app/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ products:
99
- azure
1010
- azure-active-directory
1111
- azure-functions
12+
- microsoft-identity-platform
1213
---
1314

1415
# Node.js | Azure Function | protect an API | Microsoft identity platform

protected-api-access-protected-api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ products:
1010
- azure
1111
- azure-active-directory
1212
- ms-graph
13+
- microsoft-identity-platform
1314
urlFragment: ms-identity-docs-code-api-obo-nodejs
1415
---
1516

react-spa/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ products:
66
- azure
77
- azure-active-directory
88
- ms-graph
9+
- microsoft-identity-platform
910
name: React single-page app (SPA) that signs in user
1011
url-fragment: msal-react-single-page-app
1112
description: This minimal React application demonstrates usage of the Microsoft Authentication Library for React (MSAL React) to sign in Azure AD users (authentication), call a protected web API (authorization), and sign out users.

react-spa/src/components/PageLayout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const PageLayout = (props) => {
2929
</Navbar>
3030
<div className="title">
3131
<h5>
32-
Welcome to the Microsoft Authentication Library For Javascript - React SPA Tutorial
32+
Welcome to the Microsoft Authentication Library For Javascript - React SPA
3333
</h5>
3434
</div>
3535
<div className="profileContent">

0 commit comments

Comments
 (0)