for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Tharanga Kothalawala <[email protected]>
* @date 31-12-2018
*/
namespace TSK\SSO\ThirdParty\LinkedIn;
* @package TSK\SSO\ThirdParty\LinkedIn
* @see https://developer.linkedin.com/docs/oauth2
class LinkedInApiConfiguration
{
* @var string
private $appId;
private $appSecret;
private $appPermissions;
private $redirectUrl;
* @param string $appId
* @param string $appSecret
* @param string $appPermissions
* @param string $redirectUrl
public function __construct($appId, $appSecret, $appPermissions, $redirectUrl)
$this->appId = $appId;
$this->appSecret = $appSecret;
$this->appPermissions = $appPermissions;
$this->redirectUrl = $redirectUrl;
}
* @return string
public function appId()
return $this->appId;
public function appSecret()
return $this->appSecret;
public function appPermissions()
return $this->appPermissions;
public function redirectUrl()
return $this->redirectUrl;
* This is just to identify that, we initiated the login sequence (not someone else) and to prevent CSRF.
*
public function ourSecretState()
return 'dfeb6ef625880832f61c6f4bd737e11b';