Classes/Flowpack/SingleSignOn/Server/Domain/Model/SsoServer.php
public function createAccessToken(SsoClient $ssoClient, \TYPO3\Flow\Security\Account $account) {
		$accessToken = new \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken();
		$accessToken->setAccount($account);
		$accessToken->setExpiryTime(time() + \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken::DEFAULT_VALIDITY_TIME);
		$accessToken->setSessionId($this->session->getId());
		$accessToken->setSsoClient($ssoClient);
		return $accessToken;
	}
public function createAccessToken(SsoClient $ssoClient, \TYPO3\Flow\Security\Account $account) {
		$accessToken = new \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken();
		$accessToken->setAccount($account);
		$accessToken->setExpiryTime(time() + \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken::DEFAULT_VALIDITY_TIME);
		$accessToken->setSessionId($this->session->getId());
		$accessToken->setSsoClient($ssoClient);
		return $accessToken;
	}
public function createAccessToken ( SsoClient $ ssoClient , \ TYPO3 \ Flow \ Security \ Account $ account ) { $ accessToken = new \ Flowpack \ SingleSignOn \ Server \ Domain \ Model \ AccessToken ( ) ; $ accessToken -> setAccount ( $ account ) ; $ accessToken -> setExpiryTime ( time ( ) + \ Flowpack \ SingleSignOn \ Server \ Domain \ Model \ AccessToken :: DEFAULT_VALIDITY_TIME ) ; $ accessToken -> setSessionId ( $ this -> session -> getId ( ) ) ; $ accessToken -> setSsoClient ( $ ssoClient ) ; return $ accessToken ; }
Create an access token for the given SSO client

The access token allows the client to get authentication details and transfer the session id.

@param \Flowpack\SingleSignOn\Server\Domain\Model\SsoClient $ssoClient
@param \TYPO3\Flow\Security\Account $account
@return \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken
Create an access token for the given SSO client