FakeCognito

class FakeCognito(val pools: Storage<CognitoPool> = Storage.InMemory(), clock: Clock = Clock.systemUTC(), expiry: Duration = Duration.ofHours(1)) : ChaoticHttpHandler

Constructors

Link copied to clipboard
constructor(pools: Storage<CognitoPool> = Storage.InMemory(), clock: Clock = Clock.systemUTC(), expiry: Duration = Duration.ofHours(1))

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Convenience function to get Cognito client

Link copied to clipboard
open operator override fun invoke(request: Request): Response
Link copied to clipboard
Link copied to clipboard
fun FakeCognito.registerOAuthClient(id: ClientId, clientName: ClientName = ClientName.of(id.value)): Credentials

Helper method to create some OAuth Client credentials inside FakeCognito

Link copied to clipboard