Bump libraries for Kotlin-client. (#20053)

This commit is contained in:
Sylwester Zieliński
2024-11-08 09:05:28 +01:00
committed by GitHub
parent 00db84d22b
commit 3a3688280f
52 changed files with 37 additions and 579 deletions

View File

@@ -1,13 +1,11 @@
package org.openapitools.client.auth
import io.ktor.util.InternalAPI
import io.ktor.util.encodeBase64
class HttpBasicAuth : Authentication {
var username: String? = null
var password: String? = null
@OptIn(InternalAPI::class)
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
if (username == null && password == null) return
val str = (username ?: "") + ":" + (password ?: "")