Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9077085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:15:32+00:00 2026-06-16T19:15:32+00:00

I created a new MVC4 Application and install nuget package Breeze.MVC4WebApiClientSample Inside the BreezeSampleController,

  • 0

I created a new MVC4 Application and install nuget package Breeze.MVC4WebApiClientSample

Inside the BreezeSampleController, i added an “Authorize” attribute. When i browse to here
http://localhost:XXXXX/api/BreezeSample/todos, i can still see the data.

How can i authorize the call? I tried to remove the BreezeController attribute and add these
[ODataActionFilter, JsonFormatter] but i have another error (The action ‘Posts’ on controller ‘Posts’ ….. cannot support querying)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:15:34+00:00Added an answer on June 16, 2026 at 7:15 pm

    My bad. The [BreezeController] attribute was too aggressive in removing ambient action filters; it apparently removed the filter responsible for the [Authorize] attribute. I have a fix that is currently under review.

    The “[ODataActionFilter, JsonFormatter]” formula didn’t suffer from this problem because it didn’t remove any existing filters. Of course that was a problem too. If you used the new ASP.NET MVC SPA template … and I think you are! … then its QueryFilterProvider conflicted with our ODataActionFilter … which is why we invented the [BreezeController] attribute and why, I think, that you’re getting the error about not supporting querying. Can you confirm that you built your app from that SPA template?

    Btw … what ‘Posts’ action are you talking about? The “Breeze.MVC4WebApiClientSample” does not have such an action.

    In any case, we expect to have the [BreezeController] attribute working properly with [Authorize] very soon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created new version of CoreData model (added one new attribute to entity) and
I have recently created a new application that is using MVC4 and EF5. The
If you create a new MVC4 web application with the Internet Application Project Template
I've created a method using the new WebAPI features in MVC4 and have it
I have a new Codeblocks install with mingw32 compiler. Created new c++ console project
I've created a brand new MVC 4 application in C# using Visual Studio 2012.
The new MVC4 RTM internet application templates use the SimpleMembership providers as descibed here
i created a very small mvc4 internet application that has an autocomplete textbox on
If I create a new MVC4 Web Application with the Internet Application project template
Today, I created a new ASP.NET MVC 4 project - Internet application. With all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.