3 ms·
Rails has a templating system for generating emails (standard HTML/ERB files). If you're running an ASP.NET Web API (not MVC) the best way of doing that I've fo
by benbristow 5y ago
Rails has a templating system for generating emails (standard HTML/ERB files). If you're running an ASP.NET Web API (not MVC) the best way of doing that I've found is via RazorLight which you have to set up manually - https://github.com/toddams/RazorLight https://github.com/toddams/RazorLight
For authentication, with Rails the standard is pretty much Devise or Omniauth (or both) - does everything for you. I've never found anything for ASP like Devise which gives you an entire registration/login system with all the required views/models/migrations in a couple commands.
- merb 5y ago> I've never found anything for ASP like Devise which gives you an entire registration/login system with all the required views/models/migrations in a couple commands. ??????????????????????????????????????????? You know that this is built-in, right? https://docs.microsoft.com/aspnet/core/security/authentication/identity https://docs.microsoft.com/aspnet/core/security/authenticati... https://docs.microsoft.com/aspnet/core/security/authentication/scaffold-identity https://docs.microsoft.com/aspnet/core/security/authenticati... also the same choices apply to rails.
- benbristow 5y agoI mentioned Identity in my first comment. I've never found it as simple as Devise though - especially in an API only setting. With Devise there's a third-party Gem you can use called devise_token_auth which deals with everything automatically. https://github.com/lynndylanhurley/devise_token_auth https://github.com/lynndylanhurley/devise_token_auth