Package-level declarations

Types

Link copied to clipboard
class CorsInterceptor(allowedMethods: List<String> = listOf("POST", "GET", "OPTIONS")) : ResponseInterceptor
Link copied to clipboard
interface Interceptor
Link copied to clipboard
class MockWebServerWrapper @JvmOverloads constructor(val ssl: Ssl? = null) : OAuth2HttpServer
Link copied to clipboard
class NettyWrapper @JvmOverloads constructor(val ssl: Ssl? = null) : OAuth2HttpServer
Link copied to clipboard
data class OAuth2HttpRequest(val headers: Headers, val method: String, val originalUrl: HttpUrl, val body: String? = null)
Link copied to clipboard
Link copied to clipboard
data class OAuth2HttpResponse(val headers: Headers = Headers.headersOf(), val status: Int, val body: String? = null, val bytesBody: ByteArray? = null)
Link copied to clipboard
Link copied to clipboard
data class OAuth2TokenResponse(val tokenType: String, val issuedTokenType: String? = null, val idToken: String? = null, val accessToken: String?, val refreshToken: String? = null, val expiresIn: Int = 0, val scope: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Ssl @JvmOverloads constructor(val sslKeystore: SslKeystore = SslKeystore())
Link copied to clipboard
class SslKeystore @JvmOverloads constructor(val keyPassword: String = "", val keyStore: KeyStore = generate("localhost", keyPassword))
Link copied to clipboard
data class WellKnown(val issuer: String, val authorizationEndpoint: String, val endSessionEndpoint: String, val revocationEndpoint: String, val tokenEndpoint: String, val userInfoEndpoint: String, val jwksUri: String, val introspectionEndpoint: String, val responseTypesSupported: List<String> = listOf("code", "none", "id_token", "token"), val responseModesSupported: List<String> = listOf("query", "fragment", "form_post"), val subjectTypesSupported: List<String> = listOf("public"), val idTokenSigningAlgValuesSupported: List<String> = (KeyGenerator.ecAlgorithmFamily + KeyGenerator.rsaAlgorithmFamily).map { it.name }.toList(), val codeChallengeMethodsSupported: List<String> = listOf("plain", "S256"))

Properties

Link copied to clipboard
val objectMapper: ObjectMapper
Link copied to clipboard

Functions

Link copied to clipboard
fun authenticationSuccess(authenticationSuccessResponse: AuthenticationSuccessResponse): OAuth2HttpResponse
Link copied to clipboard
fun get(path: String, requestHandler: RequestHandler): Route
Link copied to clipboard
Link copied to clipboard
fun json(anyObject: Any): OAuth2HttpResponse
Link copied to clipboard
Link copied to clipboard
fun notFound(body: String? = null): OAuth2HttpResponse
Link copied to clipboard
fun oauth2Error(error: ErrorObject): OAuth2HttpResponse
Link copied to clipboard
fun options(path: String, requestHandler: RequestHandler): Route
Link copied to clipboard
fun post(path: String, requestHandler: RequestHandler): Route
Link copied to clipboard
fun put(path: String, requestHandler: RequestHandler): Route
Link copied to clipboard
fun redirect(location: String, headers: Headers = Headers.headersOf()): OAuth2HttpResponse
Link copied to clipboard
fun route(path: String, method: String? = null, requestHandler: RequestHandler): Route
Link copied to clipboard
fun routes(vararg route: Route): Route
fun routes(config: Route.Builder.() -> Unit): Route