khrt / Raisin

Raisin - a REST API micro framework for Perl 🐫 🐪
62 stars 31 forks source link

Authentication module in Raisin #98

Closed AbhishekSharma20 closed 4 years ago

AbhishekSharma20 commented 5 years ago

I couldn't find any way to add authentication to the API built by Raisin. Is there any way I can do it using an external library ? I could see in older cpan documentation there was a section for authentication which is TODO. But in the newer version that section is removed.

djzort commented 5 years ago

Would one of the Plack::Middleware::Auth:: modules provide what you are after? I will defer though to @khrt for his definitive answer.

khrt commented 5 years ago

Hi everyone,

I would indeed would delegate the work to a middleware, and what @djzort suggests is a good choice/start.

AbhishekSharma20 commented 4 years ago

Hi @djzort @khrt , Thanks for the info, This is what I was looking for. Appreciate your help.