nickel-org / nickel.rs

An expressjs inspired web framework for Rust
http://nickel-org.github.io/
MIT License
3.04k stars 159 forks source link

Provide authentication & session middleware #98

Open jacek99 opened 9 years ago

jacek99 commented 9 years ago

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 commented 9 years ago

Couldn't agree more!

I'll have a look at implementing this.

jacek99 commented 9 years ago

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 commented 9 years ago

Any updates on implementing sessions into nickel?

cydrobolt commented 8 years ago

Is this implemented yet?

cburgdorf commented 8 years ago

@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 commented 6 years ago

Is Auth available now ?

jolhoeft commented 5 years ago

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.