I want to implement super simple auth flow with the following assumptions:
I have simple Vue.js app hosted on vueapp.example.com
I have simple REST Laravel API hosted on api.example.com
Vue.js app should consume Laravel API
The whole project (app and api) is a simple SAAS platform in which administrator can create account for users which should be able to logg-in via Vue.js login form (for example)
I see that Passport provides useful helpers for testing stuff as authenticated user (https://laravel.com/docs/5.4/passport#testing) but I want to test the whole auth flow somethink like that:
Given a user with "email" and "password" exists
When I send"email" and "password" to "oauth/token"
Then I should have token and refresh token in the json response