redchamps/bigcommerce-oauth-laravel

简化BigCommerce App认证过程。

1.0.4 2024-04-27 07:12 UTC

This package is auto-updated.

Last update: 2024-08-27 07:53:48 UTC


README

安装

  • composer require redchamps/bigcommerce-oauth-laravel
  • php artisan vendor:publish --tag=bigcommerce-auth-migrations
  • php artisan migrate

更新到.env

  • BC_CLIENT_ID=BigCommerce-App-Client-ID
  • BC_SECRET=BigCommerce-App-Secret-ID
  • BC_REDIRECT_PATH=/

更新到 routes/web.php

use CronixWeb\BigCommerceAuth\BigAuthRoutes;

BigAuthRoutes::register();

回调

  • domain.com/auth/install
  • domain.com/auth/load

config/session.php

  • 在SESSION_SECURE_COOKIE默认值中添加true
  • 将same_site => lax更改为none

可选的视图文件发布

  • php artisan vendor:publish --tag=bigcommerce-auth-views