I am building an application which exposes an REST API. The application has distributed plugins for various web platforms that can consume this API.
At first I've built my own auth protocol which is okay, but now I am converting to the more robust OAuth2 in the form of Laravel Passport.
I want the user to be able to click "Connect" on the plugin then:
- login/sign up pop up (eg. http://ift.tt/2k110Xq)
- authorise or not screen
- receive token via
window.opener.postMessage
I want to avoid having the user(non-developer) create OAuth Clients.
Questions are:
- Should I use password grant token or refresh token?
- Is there a point for
redirect_uriif my goal is to auto-close the auth window pop-up upon authorization?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2k0WdWe
via IFTTT
Aucun commentaire:
Enregistrer un commentaire