PHP 클래스 Happyr\LinkedIn\Authenticator

저자: Tobias Nyholm ([email protected])
상속: implements Happyr\LinkedIn\AuthenticatorInterface
파일 보기 프로젝트 열기: happyr/linkedin-api-client

보호된 프로퍼티들

프로퍼티 타입 설명
$appId string The application ID.
$appSecret string The application secret.

공개 메소드들

메소드 설명
__construct ( Happyr\LinkedIn\Http\RequestManagerInterface $requestManager, string $appId, string $appSecret )
clearStorage ( )
fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator )
getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, $options = [] )
setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage )

보호된 메소드들

메소드 설명
establishCSRFTokenState ( ) Lays down a CSRF state token for this process.
getAccessTokenFromCode ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, string $code ) : Happyr\LinkedIn\AccessToken Retrieves an access token for the given authorization code (previously generated from www.linkedin.com on behalf of a specific user). The authorization code is sent to www.linkedin.com and a legitimate access token is generated provided the access token and the user for which it was generated all match, and the user is either logged in to LinkedIn or has granted an offline access permission.
getCode ( ) : string | null Get the authorization code from the query parameters, if it exists, and otherwise return null to signal no authorization code was discovered.
getRequestManager ( ) : RequestManager
getStorage ( ) : Happyr\LinkedIn\Storage\DataStorageInterface

메소드 상세

__construct() 공개 메소드

public __construct ( Happyr\LinkedIn\Http\RequestManagerInterface $requestManager, string $appId, string $appSecret )
$requestManager Happyr\LinkedIn\Http\RequestManagerInterface
$appId string
$appSecret string

clearStorage() 공개 메소드

public clearStorage ( )

establishCSRFTokenState() 보호된 메소드

Lays down a CSRF state token for this process.
protected establishCSRFTokenState ( )

fetchNewAccessToken() 공개 메소드

public fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator )
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface

getAccessTokenFromCode() 보호된 메소드

Retrieves an access token for the given authorization code (previously generated from www.linkedin.com on behalf of a specific user). The authorization code is sent to www.linkedin.com and a legitimate access token is generated provided the access token and the user for which it was generated all match, and the user is either logged in to LinkedIn or has granted an offline access permission.
protected getAccessTokenFromCode ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, string $code ) : Happyr\LinkedIn\AccessToken
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface
$code string An authorization code.
리턴 Happyr\LinkedIn\AccessToken An access token exchanged for the authorization code.

getCode() 보호된 메소드

Get the authorization code from the query parameters, if it exists, and otherwise return null to signal no authorization code was discovered.
protected getCode ( ) : string | null
리턴 string | null The authorization code, or null if the authorization code not exists.

getLoginUrl() 공개 메소드

public getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, $options = [] )
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface

getRequestManager() 보호된 메소드

protected getRequestManager ( ) : RequestManager
리턴 Happyr\LinkedIn\Http\RequestManager

getStorage() 보호된 메소드

protected getStorage ( ) : Happyr\LinkedIn\Storage\DataStorageInterface
리턴 Happyr\LinkedIn\Storage\DataStorageInterface

setStorage() 공개 메소드

public setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage )
$storage Happyr\LinkedIn\Storage\DataStorageInterface

프로퍼티 상세

$appId 보호되어 있는 프로퍼티

The application ID.
protected string $appId
리턴 string

$appSecret 보호되어 있는 프로퍼티

The application secret.
protected string $appSecret
리턴 string