Skip to content

Commit

Permalink
Rename wasmmanager apis to wasmo
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Nov 27, 2023
1 parent d97d7ce commit dcf2912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/io/otoroshi/wasm4s/scaladsl/ApikeyHelper.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.otoroshi.wasm4s.scaladsl

import java.nio.charset.StandardCharsets
import java.util.Base64
import io.otoroshi.wasm4s.scaladsl.implicits._

object ApikeyHelper {
def generate(settings: WasmoSettings): String = {
"Basic " + Base64.getEncoder.encodeToString(s"${settings.clientId}:${settings.clientSecret}".getBytes(StandardCharsets.UTF_8))
val token = s"${settings.clientId}:${settings.clientSecret}".base64
s"Basic $token"
}
}

0 comments on commit dcf2912

Please sign in to comment.