redchamps / bigcommerce-oauth-laravel
BigCommerce App authentication made easy.
Installs: 201
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
pkg:composer/redchamps/bigcommerce-oauth-laravel
Requires
README
Installation
- composer require redchamps/bigcommerce-oauth-laravel
- php artisan vendor:publish --tag=bigcommerce-auth-migrations
- php artisan migrate
Update to .env
- BC_CLIENT_ID=BigCommerce-App-Client-ID
- BC_SECRET=BigCommerce-App-Secret-ID
- BC_REDIRECT_PATH=/
Update to routes/web.php
use CronixWeb\BigCommerceAuth\BigAuthRoutes;
BigAuthRoutes::register();
Callbacks
- domain.com/auth/install
- domain.com/auth/load
config/session.php
- Add true in SESSION_SECURE_COOKIE default value
- Change same_site => lax to none
Optional view file publish
- php artisan vendor:publish --tag=bigcommerce-auth-views