thephpleague/oauth2-server — pull request #287 by bp1222 (2014-12-20 06:35:29+00:00)
Title: Add new Implicit Grant type

Although I'm sure this has been on someones radar, and y'all may have other means of implementing: I'm at least submitting a working Implicit grant type.

It doesn't fit, perfectly cleanly into the AuthorizationServer setup in here (with the abstract method). Since we're going to be issuing the access_token when we authorize the request, we're getting a POST from the auth form. So we can't use the issueAccessToken(), as we don't have a _GET nor do we have a grant_type.

So to achieve this, here, I just ignore the completeFlow, and the application, when needing the redirect URI with the access_token will call ImplicitGrant::getRedirectUri($AuthParams) [auth params from checkAuthorizeParams]. This will get the redirect back to the requesting Application.