rootinc / laravel-azure-middleware

94 stars 39 forks source link

Help , VUE SPA #52

Open cristhian199228 opened 3 years ago

cristhian199228 commented 3 years ago

Hi , can you help me? how integrate this package with vue spa frontend .

Thx

danieltjewett commented 3 years ago

The instructions are pretty self-explanatory, but happy to help if there is something specific you are stuck on. For a single page app, it would simply creating a route in the web.php file (most likely /), and adding the Azure middleware to that route (step 9 of https://github.com/rootinc/laravel-azure-middleware#normal-installation or laravel example: https://laravel.com/docs/8.x/routing#route-group-middleware)

AarRidho commented 3 years ago

Hello @danieltjewett, this is great library!

will this package check for Authorization Bearer [azure-token] header on API request if I put the Azure Middleware on the API Route?

danieltjewett commented 3 years ago

The package currently does not check the header for Authorization Bearer. We currently are storing the tokens in session: https://github.com/rootinc/laravel-azure-middleware/blob/master/src/Azure.php#L33. We're open to a PR though that adds this feature!