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
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