janko / rodauth-rails

Rails integration for Rodauth authentication framework
https://github.com/jeremyevans/rodauth
MIT License
584 stars 40 forks source link

Show JWT configuration in README #6

Closed nicolas-besnard closed 4 years ago

nicolas-besnard commented 4 years ago

I've never worked with Roda or Rodauth before. Your gem is for me the perfect opportunity to try it.

The installation is so simple that I think basic configuration should be part of the documentation. I'll edit this PR as soon as I get more info (but maybe I don't need anything else)

hmistry commented 4 years ago

I'm not familiar with the working of this gem, Rodauth, nor have I fully read the details in this doc...

I worked on an app that used Firebase for authentication which gives the client a JWT token. Our app then used the JWT token to confirm an authenticated user on a per request basis whether it was web UI or JSON api requests.

As such it would be great if the doc shows how JWT tokens can be used for both web UI requests and JSON API requests and not only limit to JSON requests.