Category : oauth

Laravel Socialite Twitter (Oauth1) I am having trouble with twitter login via laravel socialite. Socialite::driver(‘twitter’)->user(); the code above throws an error with message: Argument 1 passed to LeagueOAuth1ClientServerServer::getTokenCredentials() must be an instance of LeagueOAuth1ClientCredentialsTemporaryCredentials, null given I checked Laravel Socialite documentation and it says that to get the user details of a twitter account, I ..

Read more

I am trying to apply multiple authentication to laravel using passport authentication passport. But its showing every time for admin authentication. I tried many times, but not able to authentication. Please help. This is my admin class class Admin extends Authenticatable { use Notifiable, HasApiTokens; protected $guard = ‘admin’; /** * The attributes that are ..

Read more

I am trying to get the role form Azure AD by using metrogistics/laravel-azure-ad-oauth socialiate plugin. I got the name and email and azure_id from the Azure. But I can’t get the user role. user: array:12 [ “@odata.context” => “https://graph.microsoft.com/v1.0/$metadata#users/$entity” “businessPhones” => [] “displayName” => “Test4” “givenName” => “Test4” “jobTitle” => null “mail” => null “mobilePhone” ..

Read more

I’m using Laravel passport package to use OAuth. It works perfectly fine, but when I set client (In oauth_clients table) revoked attribute to 1 it doesn’t redirect back to my site callback. It just returns JSON response { “error”: “invalid_client”, “error_description”: “Client authentication failed”, “message”: “Client authentication failed” } but I want to return this ..

Read more

I have two project. I created auth on a site and i want to create auth second site when regsiter on site this user data insert first site database. I want to create auth with passport in laravel over another database. my AuthServiceProvider file contain as : <?php namespace AppProviders; use AppPassportAuthCode; use AppPassportClient; use ..

Read more