Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience method to opt out of authentication on all routes #3

Open
jrios opened this issue Nov 1, 2012 · 4 comments
Open

Convenience method to opt out of authentication on all routes #3

jrios opened this issue Nov 1, 2012 · 4 comments
Assignees

Comments

@jrios
Copy link

jrios commented Nov 1, 2012

For some sites, opting into authentication for every route might not be the most ideal. In order to remove this functionality, you have to configure the bottle in a way that might not be the most intuitive:

Import<ApplyAuthentication>(authentication =>
{
    authentication.Include(chain => false);
    //Configure routes to include authentication
});

It would be nice to have an option to easily opt out of authentication from all routes and then configure the routes that need to be authenticated.

@RobertTheGrey
Copy link
Contributor

I agree - we're definitely going to need this more than the current method which enforces auth on every route.

@jmarnold
Copy link
Contributor

jmarnold commented Nov 2, 2012

Just to be clear: This IS doable today. The real issue is that it's just not intuitive.

@RobertTheGrey
Copy link
Contributor

For some reason, this little configuration above doesn't work for me - it still tries to authenticate every route unless I add the NotAuthenticated attribute on every class. You say it is doable today Josh - but how?

@jeremydmiller
Copy link
Contributor

Robert,

The way that the configuration aspect of FubuMVC.Authentication is right now is flawed and non-functional (the Utah guys stumbled into it). I'm actually working on that very thing this morning so that my team and our other Utah teams can start using that Bottle.

Give me a couple hours and I'll have an update for the list. The signature is going to change though.

On Nov 29, 2012, at 3:37 AM, Robert Greyling [email protected] wrote:

For some reason, this little configuration above doesn't work for me - it still tries to authenticate every route unless I add the NotAuthenticated attribute on every class. You say it is doable today Josh - but how?


Reply to this email directly or view it on GitHub.

@ghost ghost assigned jeremydmiller Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants