Laravel Passport provider with password grant create request with strage and incorrect url #1635
Unanswered
katarzynakleczar
asked this question in
Support Requests
Replies: 2 comments
-
Have you found any way to fix this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version
module: 5.0.0-1637745161.ea53f98
nuxt: 2.15.8
Nuxt configuration
mode:
Nuxt configuration
.env
Reproduction
https://codesandbox.io/s/nuxt-auth-error-4wkfb?file=/nuxt.config.js
What is expected?
When
grantType
isn't set request url host is the same as iturl
option (ex.http://api.app-name.loc/
).(caption: app-name.loc host does't exist, it is only exapmle to show, that it work correctly)
It is expected that set
grantType
option topassword
not change this behavior.What is actually happening?
After set
grantType
,url
andendpoints.token
options are ignored and request url ishttp://localhost:3000/_auth/{strategyName}/token
. In this exapmple stategy name islaravelPassport
Proxy settings in axios module are ignered, create proxy_auth/{strategyName}
doesn't work. Nuxt cannot connect to laravel api.Steps to reproduce
Create new nuxt project with auth module, copy Laravel Pasport provider settings from module docs and set "grantType" option to "password" or click in link above where it's configured ("Login" button in this app create new auth request with bug).
Additional information
Checklist
Beta Was this translation helpful? Give feedback.
All reactions