-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Authorization broken in Razor Pages #7011
Copy link
Copy link
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
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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