LINEログインの設定をしているのですが、
コールバックURLにリダイレクトされずにログイン画面に戻ってしまいます。
こちらがサイトのURLになります。
https://sumachira.jp/login
以下のサイトを参考にして、チャネルID、チャネルシークレット、コールバックURLを.envに追記しました。
https://qiita.com/kuzira_vimmer/items/da31374a8733d5158d53
コールバックURLは下記を指定しています。
LINE_CALLBACK_URL=https://sumachira.jp/choose-store
原因として考えられるのは、認証できずにログイン画面に戻されてるのでしょうか・・・?
web.php
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::prefix('/admin')->name('admin.')->namespace('Admin')->group(function(){ // All the admin routes will be defined here Route::namespace('Auth')->group(function(){ //Login Routes Route::get('/login','LoginController@showLoginForm')->name('login'); Route::post('/login','LoginController@login'); Route::post('/logout','LoginController@logout')->name('logout'); //Forgot Password Routes Route::get('/password/reset','ForgotPasswordController@showLinkRequestForm')->name('password.request'); Route::post('/password/email','ForgotPasswordController@sendResetLinkEmail')->name('password.email'); //Reset Password Routes Route::get('/password/reset/{token}','ResetPasswordController@showResetForm')->name('password.reset'); Route::post('/password/reset','ResetPasswordController@reset')->name('password.update'); }); Route::get('/', function() { return redirect(route('admin.dashboard')); }); Route::get('/dashboard', 'DashboardController@index')->name('dashboard'); // /* // Register User to store // */ // Route::get('/store/total_register_user/count','StoreController@countRegisterUser'); /* Message Template CRUD */ Route::get('/messages','MessageTemplateController@index')->name('messages.index'); Route::get('/messages/filter','MessageTemplateController@filterMessage')->name('messages.filter'); Route::get('/messages/{message_id}/show','MessageTemplateController@show')->name('messages.show'); Route::get('/messages/edit','MessageTemplateController@edit')->name('messages.edit'); Route::post('/messages/update','MessageTemplateController@update')->name('messages.update'); Route::get('/messages/create','MessageTemplateController@showCreateForm')->name('messages.create'); Route::post('/messages/store','MessageTemplateController@store')->name('messages.store'); Route::get('/messages/detele','MessageTemplateController@destroy'); Route::get('/messages/ajax/get_templates', 'MessageTemplateController@ajaxGetTemplates')->name('messages.ajax.get_templates'); // /* // City CRUD // */ // Route::get('/cities/list','CityController@index'); // Route::get('/cities/{city_id}/show','CityController@display'); // Route::get('/cities/{city_id}/edit','CityController@edit'); // Route::post('/cities/create','CityController@store'); // Route::post('/cities/update','CityController@update'); // Route::delete('/cities/{city_id}/delete','CityController@destroy'); Route::get('/cities/ajax/get_cities', 'CityController@ajax_get_cities')->name('cities.ajax.get_cities'); // /* // Prefecture CRUD // */ // Route::get('/prefectures/list','PrefectureController@index'); // Route::get('/prefectures/{prefecture_id}/show','PrefectureController@display'); // Route::get('/prefectures/{prefecture_id}/edit','PrefectureController@edit'); // Route::post('/prefectures/create','PrefectureController@store'); // Route::post('/prefectures/update','PrefectureController@update'); // Route::delete('/prefectures/{prefecture_id}/delete','PrefectureController@destroy'); /* Store CRUD */ Route::get('/store','StoreController@index')->name('stores.index'); Route::get('/store/create', 'StoreController@showCreateForm')->name('stores.create_form'); Route::post('/store/create','StoreController@store')->name('stores.create'); Route::get('/store/{store_id}/show','StoreController@display')->name('stores.detail'); Route::get('/store/edit','StoreController@edit')->name('stores.edit_form'); Route::post('/store/update','StoreController@update')->name('stores.update'); Route::get('/store/delete','StoreController@destroy')->name('stores.destroy'); Route::get('/store/csv-export','StoreController@csvExport')->name('stores.csv-export'); Route::get('/stores/ajax/get_stores', 'StoreController@ajax_get_stores')->name('stores.ajax.get_stores'); /* Category CRUD */ Route::get('/category','CategoryController@index')->name('category.index'); Route::get('/category/{category_id}/show','CategoryController@display')->name('category.show'); Route::get('/category/{category_id}/edit','CategoryController@edit')->name('category.edit'); Route::post('/category/create','CategoryController@store')->name('category.store'); Route::post('/category/update','CategoryController@update')->name('category.update'); Route::get('/category/delete','CategoryController@destroy')->name('category.destroy'); Route::get('/category/ajax/get_categories', 'CategoryController@ajax_get_categories')->name('category.ajax.get_categories'); /* Product CRUD */ Route::get('/product','ProductController@index')->name('products.index'); Route::get('/product/create','ProductController@showCreateForm')->name('products.create'); Route::get('/product/{product_id}/show','ProductController@display'); Route::get('/product/{product_id}/edit','ProductController@edit')->name('products.edit'); Route::post('/product/file/create','ProductController@storeUsingFile')->name('products.store.file'); Route::post('/product/base64/create','ProductController@storeUsingBase64'); Route::post('/product/file/update','ProductController@updateUsingFile')->name('products.update.file');; Route::post('/product/base64/update','ProductController@updateUsingBase64'); Route::get('/product/delete','ProductController@destroy'); Route::post('/product/add-to-store','ProductController@addProductToStore'); Route::get('products/product-import','ProductController@showProductImport')->name('products.import'); Route::post('products/bulk-insert','ProductController@bulkInsertThroughExcelFile')->name('products.bulk_insert'); Route::get('/products/csv-export','ProductController@csvExport')->name('products.csv-export'); Route::get('/products/ajax/get_reserve_products', 'ProductController@get_reserve_products')->name('products.ajax.get_reserve_products'); // /* // Line Message // */ // Route::get('/line-message/{user_provider_id}/reserved-product-done','LineMessageController@reservedProductDone'); // Route::get('/line-message/{user_provider_id}/reserved-product-out-of-stock','LineMessageController@reservedProducOutOfStock'); // Route::get('/line-message/{user_provider_id}/{message_template_id}/manual-message','LineMessageController@manualMessage'); Route::post('/line-message/manual-message', 'LineMessageController@manualMessage')->name('line_message.manual_message'); Route::post('/line-message/bulk-message', 'LineMessageController@bulkMessage')->name('line_message.bulk_message'); /** * Customers management */ Route::get('/customers', 'CustomerController@index')->name('customers.index'); Route::get('/customers/edit', 'CustomerController@showEditForm')->name('customers.edit'); Route::post('/customers/update', 'CustomerController@update')->name('customers.update'); Route::get('/customers/csv-export', 'CustomerController@customersCSVExport')->name('customers.csv-export'); Route::get('/customers/ajax/get_customers', 'CustomerController@ajax_get_customers')->name('customers.ajax.get_customers'); /** * User management */ Route::get('/users', 'AdminUserController@index')->name('users.index'); Route::get('/users/filter', 'AdminUserController@filterUser')->name('users.filter'); Route::get('/users/create', 'AdminUserController@showCreateForm')->name('users.create_form'); Route::post('/users/store', 'AdminUserController@store')->name('users.store'); Route::get('/users/edit', 'AdminUserController@showEditForm')->name('users.edit'); Route::post('/users/update', 'AdminUserController@update')->name('users.update'); Route::get('/users/csv-export', 'AdminUserController@usersCSVExport')->name('users.csv-export'); Route::get('/users/delete', 'AdminUserController@destroy')->name('users.destroy'); Route::get('/reservations', 'ReservationController@index')->name('reservations.index'); Route::get('/reservations/create', 'ReservationController@showCreateForm')->name('reservations.create'); Route::get('/reservations/edit', 'ReservationController@showEditForm')->name('reservations.edit'); Route::post('/reservations/update', 'ReservationController@update')->name('reservations.update'); Route::post('/reservations/make', 'ReservationController@makeReservation')->name('reservations.make'); Route::post('/reservations/mark-receive', 'ReservationController@markAsReceive')->name('reservations.mark-receive'); }); Auth::routes(['register' => false]); Route::get('oauth/login/{provider}', 'Auth\LoginController@redirectToProvider'); Route::get('oauth/login/{provider}/callback','Auth\LoginController@handleProviderCallback'); Route::get('/{any}', 'SPAController@index')->where('any', '.*')->name('store-front');
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。