Skip to content

Commit 09ad714

Browse files
Added ASP demo readme file
1 parent 380460d commit 09ad714

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/ASP.NET.Demo/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# ASP.NET.Demo
2+
3+
The ASP demo is a Razor pages web app that allows you to interact with Open API by using the OpenAPI.NET.
4+
5+
To use it you have to create a "appsettings-dev.json" configuration file in project root and write your Open API application credentials on it:
6+
7+
```json
8+
{
9+
"ApiCredentials": {
10+
"ClientId": "your-application-client-id",
11+
"Secret": "your-application-client-secret"
12+
}
13+
}
14+
```
15+
The app will load your Open API application credentials and it will use it.
16+
17+
You have to also add your web app host URL in your API application redirect URIs, otherwise the account authorization will not work and you will get an error.
18+
19+
The application default URL is set to https://localhost:5001/ and http://localhost:5000/, add both to your API application redirect URIs.
20+
21+
You can find the application URL on project/properties/launchSettings.json file, you can change it from there if you want to.

0 commit comments

Comments
 (0)