Properties

$privateKey

$privateKey : 

Type

Methods

setUp()

setUp() 

testMalformedJWT()

testMalformedJWT() 

testBrokenSignature()

testBrokenSignature() 

testExpiredJWT()

testExpiredJWT() 

testBadExp()

testBadExp() 

testNoAssert()

testNoAssert() 

testNotBefore()

testNotBefore() 

testBadNotBefore()

testBadNotBefore() 

testNonMatchingAudience()

testNonMatchingAudience() 

testBadClientID()

testBadClientID() 

testBadSubject()

testBadSubject() 

testMissingKey()

testMissingKey() 

testValidJwt()

testValidJwt() 

testValidJwtWithScope()

testValidJwtWithScope() 

testValidJwtInvalidScope()

testValidJwtInvalidScope() 

testValidJti()

testValidJti() 

testInvalidJti()

testInvalidJti() 

testJtiReplayAttack()

testJtiReplayAttack() 

getJWT()

getJWT(  $exp = null,   $nbf = null,   $sub = null,   $iss = 'Test Client ID',   $jti = null) : string

Generates a JWT

Parameters

$exp

The expiration date. If the current time is greater than the exp, the JWT is invalid.

$nbf

The "not before" time. If the current time is less than the nbf, the JWT is invalid.

$sub

The subject we are acting on behalf of. This could be the email address of the user in the system.

$iss

The issuer, usually the client_id.

$jti

Returns

string

getTestServer()

getTestServer(  $audience = 'http://myapp.com/oauth/auth') 

Parameters

$audience