Open hafezdivandari opened 3 months ago
Thanks for submitting a PR!
Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.
Pull requests that are abandoned in draft may be closed due to inactivity.
Hey this is a great idea! I have maintained a package since the start of Jetstream which adds Passport support to Jetstream. It's possible you may find some of the code useful to your PR. Feel free to use what you need. First party support would be nice.
Thank you, @inmanturbo! I appreciate the feedback and the offer to use your package as a reference. If you have any suggestions or insights from your experience maintaining that package, I'd love to hear them. This PR is still a work in progress, and I plan to add tests and implement the new device flow as soon as the required PRs on Passport merged.
@hafezdivandari First of all: amazing work!
While clicking on the 'Authorize' button I encounter cors problems:
(I've added https://server.dev to the client's allowed_origins just to be sure)
Network-tab reveals there is no Access-Control-Allow-Origin set while requesting.
When I manually visit the https://client.dev/oauth/callback?code=x&state=x
link everything works as expected.
Edit: When I manually visit the callback link I see a preflight request with OPTIONS set (including the allowed origin header) in my network tab. I don't see this preflight request showing up after clicking the 'Authorize' button.
@vincentleijen You may check https://github.com/laravel/passport/issues/213#issuecomment-979906551 and https://github.com/inertiajs/inertia-laravel/pull/323#issuecomment-993450275 and https://github.com/inertiajs/inertia-laravel/issues/303. The CORS issue seems to be totally unrelated to this PR.
ou may check laravel/passport#213 (comment) and inertiajs/inertia-laravel#323 (comment) and inertiajs/inertia-laravel#303. The CORS issue seems to be totally unrelated to this PR.
@hafezdivandari https://github.com/laravel/passport/issues/213#issuecomment-979906551 This fixed indeed the issue. In that case please consider my previous message as unsent!
Todo
Features
jetstream:install --api --oauth
OAuth Apps
API Tokens
Authorize View