Skip to content

Commit ad3cb3d

Browse files
committed
missing topology
1 parent 14f7ffe commit ad3cb3d

File tree

10 files changed

+92
-155
lines changed

10 files changed

+92
-155
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns

.github/ISSUE_TEMPLATE.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE MIGHT BE CLOSED WITHOUT FURTHER CONSIDERATION OR INVESTIGATION
3+
-->
4+
> Please provide us with the following information:
5+
> ---------------------------------------------------------------
6+
7+
### This issue is for a: (mark with an `x`)
8+
```
9+
- [ ] bug report -> please search issues before submitting
10+
- [ ] feature request
11+
- [ ] documentation issue or request
12+
- [ ] regression (a behavior that used to work and stopped in a new release)
13+
```
14+
15+
### Minimal steps to reproduce
16+
>
17+
18+
### Any log messages given by the failure
19+
>
20+
21+
### Expected/desired behavior
22+
>
23+
24+
### OS and Version?
25+
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
26+
27+
### Versions
28+
>
29+
30+
### Mention any other details that might be useful
31+
32+
> ---------------------------------------------------------------
33+
> Thanks! We'll be in touch soon.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Purpose
2+
<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? -->
3+
* ...
4+
5+
## Does this introduce a breaking change?
6+
<!-- Mark one with an "x". -->
7+
```
8+
[ ] Yes
9+
[ ] No
10+
```
11+
12+
## Pull Request Type
13+
What kind of change does this Pull Request introduce?
14+
15+
<!-- Please check the one that applies to this PR using "x". -->
16+
```
17+
[ ] Bugfix
18+
[ ] Feature
19+
[ ] Code style update (formatting, local variables)
20+
[ ] Refactoring (no functional changes, no api changes)
21+
[ ] Documentation content changes
22+
[ ] Other... Please describe:
23+
```
24+
25+
## How to Test
26+
* Get the code
27+
28+
```
29+
git clone [repo-address]
30+
cd [repo-name]
31+
git checkout [branch-name]
32+
npm install
33+
```
34+
35+
* Test the code
36+
<!-- Add steps to run the tests suite and/or manually test -->
37+
```
38+
```
39+
40+
## What to Check
41+
Verify that the following are valid
42+
* ...
43+
44+
## Other Information
45+
<!-- Add any other helpful information that may be needed here. -->

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

AppCreationScripts/sample.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313
"Id": "service",
1414
"Name": "active-directory-b2c-javascript-nodejs-webapi",
1515
"Kind": "WebApi",
16-
"HomePage": "http://localhost:5000/",
17-
"ReplyUrls": "http://localhost:5000/",
16+
"HomePage": "http://localhost:5000/hello",
1817
"Audience": "AzureADAnyOrgandPersonalMicrosoftAccount"
1918
}
2019
],
2120
"CodeConfiguration": [
2221
{
2322
"App": "service",
2423
"SettingKind": "JSON",
25-
"SettingFile": "\\..\\auth.json",
24+
"SettingFile": "\\..\\config.json",
2625
"Mappings": [
2726
{
2827
"key": "clientID",

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ products:
77
- ms-graph
88
- azure-active-directory
99
- azure-active-directory-b2c
10-
name: A sample demonstrating how to protect a Node.js web API with Azure AD B2C using the Passport.js library
1110
urlFragment: active-directory-b2c-javascript-nodejs-webapi
1211
description: "This sample demonstrates a JavaScript SPA application calling a Node.js Web Api that is secured using Azure AD B2C"
1312
---
@@ -46,17 +45,11 @@ You will need a **client** application for calling the Web API. Choose:
4645
## Contents
4746

4847
| File/folder | Description |
49-
|:---------------------|:----------------------------------------------------------|
50-
| `.gitignore` | Defines what to ignore at commit time. |
51-
| `CHANGELOG.md` | List of changes to the sample. |
48+
|----------------------|-----------------------------------------------------------|
49+
| `AppCreationScripts` | Contains automation scripts for app registration. |
5250
| `config.js` | Contains configuration parameters for the sample. |
53-
| `CONTRIBUTING.md` | Guidelines for contributing to the sample. |
5451
| `index.js` | Main application logic resides here. |
55-
| `LICENSE` | The license for the sample. |
56-
| `package.json` | Package manifest for npm. |
5752
| `process.json` | Contains configuration parameters for logging via Morgan. |
58-
| `README.md` | This README file. |
59-
| `SECURITY.md` | Security disclosures. |
6053

6154
## Prerequisites
6255

@@ -159,7 +152,7 @@ Call this web API from your client application. Upon an authorized call, the web
159152

160153
```javascript
161154
res.status(200).json({
162-
'displayName': req.authInfo['displayName'],
155+
'name': req.authInfo['name'],
163156
'issued-by': req.authInfo['iss'],
164157
'issued-for': req.authInfo['aud'],
165158
'scope': req.authInfo['scp']
52.7 KB
Loading

0 commit comments

Comments
 (0)