Describe the bug
The Authorize attribute no longer works in Razor Pages applications.
To Reproduce
- Make a new Razor Pages project with individual auth
- Add an
[Authorize] attribute on the Index page
- Running the application doesn't redirect to the login page.
Expected behavior
The page should redirect to the Login page.
Additional context
This is using build 3.0.0-preview-19073-0424
Seems like the authorize attribute isn't being exposed as authorize metadata.
cc @rynowak @pranavkm @JamesNK
Describe the bug
The Authorize attribute no longer works in Razor Pages applications.
To Reproduce
[Authorize]attribute on the Index pageExpected behavior
The page should redirect to the Login page.
Additional context
This is using build
3.0.0-preview-19073-0424Seems like the authorize attribute isn't being exposed as authorize metadata.
cc @rynowak @pranavkm @JamesNK