-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.