Virtuatable / virtuatable-core

The model layer gem for the jdr tools suite
0 stars 0 forks source link

When making request on a base controller, verify token instead of session #69

Closed vincentcourtois closed 2 years ago

vincentcourtois commented 2 years ago

Context

Needs

As an API user
I want to be able to authenticate on the API using my OAuth token
So that I can show that I have the permission of the user to manage its data

Notes

vincentcourtois commented 2 years ago
  1. Modify the declarators helper to check token instead of session
  2. Replace the Session helper to make a Token helper checking the correct parameter
  3. Change the way the account is inferred in the Accounts helper
  4. Create an OAuth token factory and use it in the tests
  5. Fix the tests of the base controller and the other controllers to work correctly