Skip to content

Commit 222d7f9

Browse files
authored
Update README for XeroSignInSample
1 parent b443c7c commit 222d7f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

XeroSignInSample/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is an example dotnet core MVC application making use of Xero sign in.
44
This sample does not include using OAuth2.0 to make requests against Xero's public API.
55

66
**Pre-requisite**:
7-
- This sample is a .NET Core 2.2 application, so you'll need to install [.NET Core SDK 2.2 or above](https://dotnet.microsoft.com/download).
7+
- This sample is a .NET Core 3.1 application, so you'll need to install [.NET Core SDK 3.1 or above](https://dotnet.microsoft.com/download).
88

99
## Getting started with this sample.
1010

@@ -59,9 +59,10 @@ This section is where your OAuth2.0 client details, and requested scopes are bei
5959

6060
Now that we've configured how we want our users to be authenticated, we've got to enable and enforce it.
6161

62-
Looking at the *configure* method in the same `Startup` class, you'll see the following line of code. **Note**: it's important that this line of code exists before the `UseMvc` line so that the request pipeline can enforce authentication prior to routing the requests to your controllers.
62+
Looking at the *configure* method in the same `Startup` class, you'll see the following line of code. **Note**: it's important that these lines of code exist in this order between the `UseRouting` and `UseEndpoints` lines so that the request pipeline can enforce authentication prior to routing the requests to your controllers.
6363
```
6464
app.UseAuthentication();
65+
app.UseAuthorization();
6566
```
6667

6768
Looking at the *Hello* route on our [HomeController](XeroSignInSample/Controllers/HomeController.cs), you'll see that we've set the route to require authorized users using the `Authorize` attribute.

0 commit comments

Comments
 (0)