-
Notifications
You must be signed in to change notification settings - Fork 29
Argument 1 passed to GuzzleHttp\Client::__construct() must be of the type array, null given, #10
Comments
found problem it happens because opidconnect.php shall be located in app/config folder of application not in furdarius folder. |
Good one. Might be very helpfull put It into readme. |
i can't understand how to redirect user to provider for authentication. I have client id aand client secret. |
do you have any idea? |
There is a route file in the opidconnect... It's the /protect who does the magic. After all tests done, you can change it in the laravel route file (routes.php or web.php depending on the version). The opidconnect been set Whit your provider address, secret, your client id and the URI to return, it should give back to you the $request var fullfiled in the token Class (can't remember right now the class name). |
yes Thankyou. ) I found that. Now I need to specify somewhere atributes and state. I try to debug where is fylled default ones but can't find. Do yoyu now how to do that? |
If you're talking about attributes from the authenticated user... It's up to the provider... You should see it whith a dd($request) in the handle() function in tokenmiddleware.php. As far as I know, it's where the token from provider is parsed to all the attributes permitted from provider. |
no i mean scopes, i found out how to do: in AuthController::redirect method from furdarius/oidconnect/src/http/ i changed $redicrectREsponse to:
and i got what i need but in not correct order and i get :
but i get : It is possible to change order of uri elements? |
I guess the order is up to provider too, since all the information is coded in token, and it's a middleware that parse it. |
request uri is build by Socialite laravel and I found out that is abstract createUrl method which build uri and as parameters its get an array of provided elements. I will try to manipulate with order of elements in that array and will see what I will get. Will come with more details after then I will test this. |
Great! I couldn't adapt this to my project. We end up using socialite custom drives to make it through. |
Order does not matter! problem was that I not specified one parameter namely signicat.national_id. after adding this additional parameter everything worked). See what next errors will get). |
Actually this package is build smart problem is that's uses a loooot of external libraries and classes where is wery easy to loose your self. But with patience and XDebug is possible to find out how its works |
Hi, then i try to protect a resource with midleware 'auth' i get this ugly error:
Argument 1 passed to GuzzleHttp\Client::__construct() must be of the type array, null given, called in C:\wamp\www\advoca\vendor\furdarius\oidconnect-laravel\src\ServiceProvider.php on line 68
I have folowed all intructions. I use laravel 5.6 any ideas?
The text was updated successfully, but these errors were encountered: