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

Provide authentication & session middleware #98

Open
jacek99 opened this issue Oct 11, 2014 · 7 comments
Open

Provide authentication & session middleware #98

jacek99 opened this issue Oct 11, 2014 · 7 comments

Comments

@jacek99
Copy link

jacek99 commented Oct 11, 2014

It would be great if the default middleware included an out of the box solution for authentication and session handling.

That seems to be the most missing part in order to get an actual production grade app written in Nickel

@SimonTeixidor
Copy link
Member

Couldn't agree more!

I'll have a look at implementing this.

@jacek99
Copy link
Author

jacek99 commented Oct 12, 2014

preferably the session handling should be pluggable to be in-memory if single server and then allow pluggable DB backends (e.g. Redis, Cassandra, etc) when dealing with a multi-server setup behing a load balancer.

We cannot always count on sticky sessions at the load balancer levels.

Thanks!

@dariusc93
Copy link

Any updates on implementing sessions into nickel?

@cydrobolt
Copy link

Is this implemented yet?

@cburgdorf
Copy link
Member

@cydrobolt we have https://github.com/nickel-org/session and https://github.com/nickel-org/cookies and I'm using them in production.

One thing to note is that they are not on cargo so you have to do the following

[dependencies.nickel_cookies]
git = "https://github.com/nickel-org/cookies.git"

[dependencies.nickel_session]
git = "https://github.com/nickel-org/session.git"

We don't have something polished for Auth so yet.

@ghost
Copy link

ghost commented May 2, 2018

Is Auth available now ?

@jolhoeft
Copy link
Member

Auth is still somewhat a roll your own situation yet. I have a crate, https://crates.io/crates/websession, which I use for authentication. The documentation for how to use it with nickel isn't really there yet, though. I am inclined to think Auth ought to be a separate crate from nickel.

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

6 participants