Ghassan El Bounni
Ghassan El Bounni

Reputation: 21

Walmart Integration OAuth 2.0 - One or more params missing

I'm trying to integrate my app with walmart following this link, but It's showing this error message on the login form "one or more parameters are missing".

  public function authorize(Request $request)
  {
    $params = [
      'responseType' => 'code',
      'clientId' => $this->apiKey,
      'redirectUri' => config('walmart.redirect_url'),
      'clientType' => $request->get('clientType'),
      'nonce' => Str::random(10),
      'state' => Str::random(10)
    ];

    return response(['loginUrl' => 'https://login.account.wal-mart.com/authorize?'.http_build_query($params)], 200);
  }

Using this function I'm redirecting the user to the auth page, any idea on what params are missing ?

Upvotes: 2

Views: 160

Answers (0)

Related Questions