Classes/Flowpack/SingleSignOn/Server/Domain/Model/SsoServer.php
public function buildCallbackRedirectUri(SsoClient $ssoClient, AccessToken $accessToken, $callbackUri) {
		$accessTokenCipher = $this->rsaWalletService->encryptWithPublicKey($accessToken->getIdentifier(), $ssoClient->getPublicKey());
		$signature = $this->rsaWalletService->sign($accessTokenCipher, $this->keyPairFingerprint);

		$uri = new Uri($ssoClient->getServiceBaseUri() . 'authentication/callback');
		$query = $uri->getQuery();
		if ($query !== '') {
			$query = $query . '&';
		}
		$query .= 'callbackUri=' . urlencode($callbackUri) . '&__flowpack[singlesignon][accessToken]=' . urlencode(base64_encode($accessTokenCipher)) . '&__flowpack[singlesignon][signature]=' . urlencode(base64_encode($signature));
		$uri->setQuery($query);
		return $uri;
	}
public function buildCallbackRedirectUri(SsoClient $ssoClient, AccessToken $accessToken, $callbackUri) {
		$accessTokenCipher = $this->rsaWalletService->encryptWithPublicKey($accessToken->getIdentifier(), $ssoClient->getPublicKey());
		$signature = $this->rsaWalletService->sign($accessTokenCipher, $this->keyPairFingerprint);

		$uri = new Uri($ssoClient->getServiceBaseUri() . 'authentication/callback');
		$query = $uri->getQuery();
		if ($query !== '') {
			$query = $query . '&';
		}
		$query .= 'callbackUri=' . urlencode($callbackUri) . '&__flowpack[singlesignon][accessToken]=' . urlencode(base64_encode($accessTokenCipher)) . '&__flowpack[singlesignon][signature]=' . urlencode(base64_encode($signature));
		$uri->setQuery($query);
		return $uri;
	}
public function buildCallbackRedirectUri ( SsoClient $ ssoClient , AccessToken $ accessToken , $ callbackUri ) { $ accessTokenCipher = $ this -> rsaWalletService -> encryptWithPublicKey ( $ accessToken -> getIdentifier ( ) , $ ssoClient -> getPublicKey ( ) ) ; $ signature = $ this -> rsaWalletService -> sign ( $ accessTokenCipher , $ this -> keyPairFingerprint ) ; $ uri = new Uri ( $ ssoClient -> getServiceBaseUri ( ) . 'authentication/callback' ) ; $ query = $ uri -> getQuery ( ) ; if ( $ query !== '' ) { $ query = $ query . '&' ; } $ query .= 'callbackUri=' . urlencode ( $ callbackUri ) . '&__flowpack[singlesignon][accessToken]=' . urlencode ( base64_encode ( $ accessTokenCipher ) ) . '&__flowpack[singlesignon][signature]=' . urlencode ( base64_encode ( $ signature ) ) ; $ uri -> setQuery ( $ query ) ; return $ uri ; }
Builds the callback URI to the client after authentication on the server

The URI will include an encrypted access token and is signed by the server private key.

@param \Flowpack\SingleSignOn\Server\Domain\Model\SsoClient $ssoClient
@param \Flowpack\SingleSignOn\Server\Domain\Model\AccessToken $accessToken
@param string $callbackUri
@return \TYPO3\Flow\Http\Uri
Builds the callback URI to the client after authentication on the server