All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.amazon.iamidentitycenter.FakeOIDC.kt Maven / Gradle / Ivy

There is a newer version: 5.41.0.0
Show newest version
package org.http4k.connect.amazon.iamidentitycenter

import org.http4k.chaos.ChaoticHttpHandler
import org.http4k.chaos.start
import org.http4k.connect.amazon.iamidentitycenter.endpoints.createToken
import org.http4k.connect.amazon.iamidentitycenter.endpoints.deviceAuthorization
import org.http4k.connect.amazon.iamidentitycenter.endpoints.registerClient
import org.http4k.routing.routes
import java.time.Clock

class FakeOIDC(clock: Clock = Clock.systemUTC()) : ChaoticHttpHandler() {

    override val app = routes(
        registerClient(clock),
        deviceAuthorization(),
        createToken(),
    )
}

fun main() {
    FakeOIDC().start()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy