Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 2bae449

Browse files
davidfowlDamianEdwards
authored andcommitted
Tweaks to the workshop docs
1 parent 6b7f99b commit 2bae449

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/4. Add auth features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ We're currently using `if` blocks to determine whether to show parts of the UI b
643643
}
644644
else if (!string.IsNullOrEmpty(RequiredPolicy))
645645
{
646-
// auth-policy="foo" & user is authorized for policy "foo"
646+
// authz-policy="foo" & user is authorized for policy "foo"
647647
var authorized = false;
648648
var cachedResult = ViewContext.ViewData["AuthPolicy." + RequiredPolicy];
649649
if (cachedResult != null)
@@ -661,7 +661,7 @@ We're currently using `if` blocks to determine whether to show parts of the UI b
661661
}
662662
else if (requiresAuth && ViewContext.HttpContext.User.Identity.IsAuthenticated)
663663
{
664-
// auth="true" & user is authenticated
664+
// authz="true" & user is authenticated
665665
showOutput = true;
666666
}
667667

docs/5. Add personal agenda.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ In this section we'll add features that track attendees who have registered on t
118118
</div>
119119
</div>
120120
</form>
121-
<partial name="_ValidationScriptsPartial" />
121+
@section Scripts {
122+
<partial name="_ValidationScriptsPartial" />
123+
}
122124
```
123125
1. Create a `Models` folder under your pages folder, create a class called `Attendee.cs`, then create a class which adds display specific information for an attendee
124126

@@ -153,7 +155,7 @@ In this section we'll add features that track attendees who have registered on t
153155
using Microsoft.AspNetCore.Authentication;
154156
using Microsoft.AspNetCore.Identity;
155157

156-
namespace FrontEnd
158+
namespace FrontEnd.Pages
157159
{
158160
public class WelcomeModel : PageModel
159161
{

0 commit comments

Comments
 (0)