Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm guessing your action for this is excluded from authentication; perhaps it's an AJAX-only endpoint/action. Without seeing what that action looks like, I think you can get away with a simple fix for this, if you've updated FubuMVC.Authentication in the past 3 months or so.</p> <p>You need to enable pass-through authentication for this action. Out of the box, FubuMVC.Auth only wires up the IPrincipal for actions that require authentication. If you want access to that information from other actions, you have to enable the pass-through filter. Here are some quick ways to do that.</p> <ol> <li><p>Adorn your endpoint/controller class, this specific action method, or the input model for this action with the [PassThroughAuthentication] attribute to opt-in to pass-through auth.</p> <pre><code>[PassThroughAuthentication] public AjaxContinuation post_upload_file(UploadInputModel input) { ... } </code></pre> <p>or</p> <pre><code>[PassThroughAuthentication] public class UploadInputModel { ... } </code></pre></li> <li><p>Alter the AuthenticationSettings to match the action call for pass-through in your FubuRegistry during bootstrap.</p> <pre><code>... AlterSettings&lt;AuthenticationSettings&gt;(x =&gt; { // Persistent cookie lasts 3 days ("remember me"). x.ExpireInMinutes = 4320; // Many ways to filter here. x.PassThroughChains.InputTypeIs&lt;UploadInputModel&gt;(); }); </code></pre></li> </ol> <p>Check /_fubu/endpoints to ensure that the chain with your action call has the pass-through or authentication filter applied.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload