Reputation: 213
I started new project. It is small application (playground) to learn couple new concepts. I will create backend API using Ruby on Rails and Single Page Application using React. I stuck in Authentication. I would like to create custom Token-based Authorization/Authorization. I came to following auth flow:
Is this flow correct? Should I decrypt token on client side or It is not necessary? This project is only playground but I would like to do It properly. Please give me some comments if above flow isn't good enough.
Upvotes: 1
Views: 849
Reputation: 202156
I think that you have the right approach. This link could give you more details about token-based authentication:
Hope it helps you, Thierry
Upvotes: 1