I'm seeking guidance on how to design an authentication mechanism using Angular front-end and Play Framework (Java) back-end. Here's the basic concept:
- Angular sends a REST authentication call to the Play Framework.
- Play generates a token and sends it back to Angular.
- Angular uses the token to make subsequent REST calls.
Ideally, I'd like to incorporate CSRF token into the process. However, I've struggled to find comprehensive resources on integrating Angular and Play authentication. While there are plenty of guides for JavaScript and Play integration, my scenario is quite unique.
My question is focused on how to approach the design, which frameworks/functionality to utilize, and how to effectively integrate Angular and Play in this context. General steps for achieving this objective would be appreciated, such as implementing an authentication framework in Play, integrating relevant functionality, utilizing methods in Angular, and ensuring seamless connectivity. Specific instructions or tips on securely storing password hashes in the database using Play mechanisms or other frameworks would also be valuable.