B2cTokenFaker
Table of Contents
Properties
-
$exponent
: string
-
$fakeData
: array<string, string>
-
$modulus
: string
-
$publicKey
: string
Methods
-
__construct()
: mixed
-
getB2cTokenResponse()
: array<string, mixed>
-
getExponent()
: string
-
getModulus()
: string
-
getPublicKey()
: string
-
setFakeData()
: void
-
createJWT()
: string
-
createResponse()
: array<string, mixed>
-
urlsafeBase64()
: string
$exponent
private
string
$exponent
$fakeData
private
array<string, string>
$fakeData
$modulus
private
string
$modulus
$publicKey
private
string
$publicKey
__construct()
public
__construct() : mixed
getB2cTokenResponse()
public
getB2cTokenResponse() : array<string, mixed>
Return values
array<string, mixed>
getExponent()
public
getExponent() : string
getModulus()
public
getModulus() : string
getPublicKey()
public
getPublicKey() : string
setFakeData()
public
setFakeData(string $b2cId, bool $isSuccessful, string $clientId, string $issuer[, int|null $expires = null ][, int|null $notBefore = null ]) : void
Parameters
-
$b2cId
: string
-
-
$isSuccessful
: bool
-
-
$clientId
: string
-
-
$issuer
: string
-
-
$expires
: int|null
= null
-
-
$notBefore
: int|null
= null
-
createJWT()
private
createJWT(array<string, string> $payload) : string
Parameters
-
$payload
: array<string, string>
-
createResponse()
private
createResponse() : array<string, mixed>
Return values
array<string, mixed>
urlsafeBase64()
private
urlsafeBase64(string $string) : string
Parameters
-
$string
: string
-