vendredi 14 décembre 2018

Proper redirect to Vue SPA after successful Oauth with Laravel Passport (Implicit Grant Token)

I have a Laravel backend and a Vue SPA front end. Thus far, I have managed to et the Implicit Grant tokens working. My problem is about the redirection.

After successful authentication, Laravel redirects to http://localhost:8080/auth/callback#access_token=AUTH_TOKEN&token_type=TOKEN_TYPE&expires_in=EXPIRES_IN instead of http://localhost:8080/auth/callback?access_token=AUTH_TOKEN&token_type=TOKEN_TYPE&expires_in=EXPIRES_IN (Note the # and ?). I have to manually type in the correct URL after the successful authentication.

How do I ensure that it's redirected to the correct URL properly in the first place?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire