Open dylanglockler opened 4 years ago
I have multiple installs with various modifications trying to get this package to work. On another i'm getting this error:
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. {"userId":1,"exception":"[object] (Laravel\\Passport\\Exceptions\\OAuthServerException(code: 3): The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. at /Users/Dylan/Sites/app.wanderbird.life/vendor/laravel/passport/src/Http/Controllers/HandlesOAuthErrors.php:26)
Research seems to suggest it's an issue related to Refresh Token: https://stackoverflow.com/questions/47928728/the-request-is-missing-a-required-parameter-includes-an-invalid-parameter-value
I notice also in this package that the AuthServiceProvider does not have Passport::routes() - and from reading that's required for using Passport with Laravel. Still trying to make this package work for my application - I really need Laravel 7 and Quasar working with hot reload!
I have the same problems. Specifically, the problem that you reports of "`POST http://lq.test/api/v1/oauth/token 401 (Unauthorized)" is in the code line $tokenResponse = parent::issueToken($server); in the login function of the LoginController.
I have multiple installs with various modifications trying to get this package to work. On another i'm getting this error:
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. {"userId":1,"exception":"[object] (Laravel\\Passport\\Exceptions\\OAuthServerException(code: 3): The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. at /Users/Dylan/Sites/app.wanderbird.life/vendor/laravel/passport/src/Http/Controllers/HandlesOAuthErrors.php:26)
Research seems to suggest it's an issue related to Refresh Token: https://stackoverflow.com/questions/47928728/the-request-is-missing-a-required-parameter-includes-an-invalid-parameter-value
I notice also in this package that the AuthServiceProvider does not have Passport::routes() - and from reading that's required for using Passport with Laravel. Still trying to make this package work for my application - I really need Laravel 7 and Quasar working with hot reload!
you copied key values in?
PASSWORD_GRANT_CLIENT_ID
PASSWORD_GRANT_CLIENT_SECRET
key is generated on passport:install, if you need regenerate, use passport:install --force
i modified the passport routes, for working with SPA, check the auth.php on routes/api/auth.php
I followed the instructions very carefully - twice in fact - but my login POST returns http://lq.test/api/v1/oauth/token 401 (Unauthorized)
I tried digging in to figure it out, but the entire login process on this package is modified from the Laravel docs.
`