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

kotlin-client.libraries.jvm-ktor.auth.OAuth.kt.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
package {{packageName}}.auth

class OAuth : Authentication {
    var accessToken: String? = null

    override fun apply(query: MutableMap>, headers: MutableMap) {
        val token: String = accessToken ?: return
        headers["Authorization"] = "Bearer $token"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy