Category : laravel-socialite

Laravel Framework 8.4.0 PHP 7.3.9 Только начал изучать Laravel и столкнулся с такой проблемой .Никак не получается избавиться от этой проблемы. Просмотрел кучу форумов, но так и не нашел решения. HELP. Кеш чистил. Ошибка "LaravelSocialiteTwoInvalidStateException http://localhost:8000/login/facebook/callback?code=AQCTuxanNlNhlYbx16VXKyGDOCKhDz2SjCzAX5Qsrf8DhJo9F-hd8Unm2ochAQmy2SRc5lbACckERsVuk_HydAHN5jBNhqwMjcMfiGrkP_YUPjdqDreXKMSyVwrGVmT0ayAJKO54uamF2kypaRlivCdGoEYxFHEHk-VvdrnTH-3F19n6R_gcXvk2S2zgI6gftYEJJXtKRAjI6jR_OmVEKaoGkDfwxlEEE26ZVbYuNH4YJ-gQmSZeFF547p__Pbh2B2CvEBaXNaewupe10wsauMpXLfZLgtoQt1zmUYaQi9FUBCmPH0fECpdlZZf68KfZ0aWfNTzGIrgAmRZTMtjOl1Hm&state=wtB5Zd93UZgPBJ1OcP1R03XDjt4BhwKz9P8TsDcQ" Login Controller <?php namespace AppHttpControllersAuth; use AppHttpControllersController; use AppProvidersRouteServiceProvider; use IlluminateFoundationAuthAuthenticatesUsers; use AppUser; Use LaravelSocialiteFacadesSocialite; Use Auth; class LoginController ..

Read more

I’m using php 7.4 in Laravel Homestead and edited this file etc/php/7.4/fpm/php.ini And set memory_limit = -1 I reloaded homestead and checked phpinfo() in the HomeController and it’s been changed to -1 but every time I try to install socialite composer require laravel/socialite I get PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted ..

Read more

I’m getting the avatar and save it into the uploads folder like this public function handleProviderCallback($provider) { try { $user = Socialite::driver($provider)->user(); if($user->getEmail()==” || empty($user->getEmail()) || $user->getEmail() == null) { $submit_user = array( ‘name’=>$user->getName() ); if(!empty($user->getAvatar()) && $user->getAvatar()!=” && $user->getAvatar() != null) { $fileContents = file_get_contents($user->getAvatar()); File::put(public_path() . ‘/uploads/’ . $user->getId() . ".jpg", $fileContents); $avatar_file_name ..

Read more

I’m getting the avatar and save it into the uploads folder like this public function handleProviderCallback($provider) { try { $user = Socialite::driver($provider)->user(); if($user->getEmail()==” || empty($user->getEmail()) || $user->getEmail() == null) { $submit_user = array( ‘name’=>$user->getName() ); if(!empty($user->getAvatar()) && $user->getAvatar()!=” && $user->getAvatar() != null) { $fileContents = file_get_contents($user->getAvatar()); File::put(public_path() . ‘/uploads/’ . $user->getId() . ".jpg", $fileContents); $avatar_file_name ..

Read more

Users should be able to login using Google and Facebook. I have these routes Route::get(‘login/{provider}’, ‘[email protected]’); Route::get(‘login/{provider}/callback’,’[email protected]’); Auth::routes(); I click the Facebook button and get redirected to facebook but when I get redirected back to the callback URL I get 404 Page not found error I have this function inside Auth in LoginController public function ..

Read more

I want to use #Laravel_Socialite as an #API for my #ionic app, but sever error keeps displaying. Can anyone know the issue? Im sure the ionic function has something wrong as Im posting nothing in the request Please help. Laravel Functions: public function redirectToFacebook() { $url = Socialite::with(‘facebook’)->stateless()->redirect()->getTargetUrl(); return response()->json([ ‘url’ => $url ], 200); ..

Read more

Please guys help me how to integrate my laravel socialite authentication (login with fb or google) with my ionic/angular application. I have it working 100% on my website (Laravel) but now I want to use it as a backend (API) to my frontend (ionic). & in ionic I imported the facebook plugin and it’s returning ..

Read more

In my Laravel-5.8, I am using Azure Socialite for login. After any successful login, it redirects the user to the dashboard. And this is working correctly. services ‘azure’ => [ ‘client_id’ => env(‘AZURE_KEY’,’33errtt’), ‘client_secret’ => env(‘AZURE_SECRET’,’ddffrrr’), ‘redirect’ => env(‘AZURE_REDIRECT_URI’,’http://localhost:8888/myapp/login/azure/callback’) ], routeweb.php Route::get(‘login/azure’, ‘[email protected]’)->name(‘azure.login’); Route::get(‘login/azure/callback’, ‘[email protected]’); Route::group([‘prefix’ => ‘leave’, ‘as’ => ‘leave.’, ‘namespace’ => ‘Leave’, ‘middleware’ ..

Read more

I experienced an error when it was uploaded to the server. An error occurred while on the server: Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `400 Bad Request` response: { “error”: “invalid_request”, “error_description”: “Missing required parameter: code” } when on a local computer (localhost), it runs normally. this is my script: public function redirectToGoogle() { ..

Read more

I am using Laravel-5.8 for User Azure AD Authentication. I installed this package: “socialiteproviders/microsoft-azure”: “^3.0”, composer require socialiteproviders/microsoft-azure I also did the configuration. The regular Login from database is working perfecting, but I have issues with the Laravel microsoft-azure integration. Login Controller <?php namespace AppHttpControllersAuth; use AppHttpControllersController; use IlluminateFoundationAuthAuthenticatesUsers; use IlluminateHttpRequest; use Socialite; class LoginController ..

Read more