Skip to content

Commit

Permalink
Support OAUTHBEARER SASL mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Shaw committed May 8, 2020
1 parent 2b3ca92 commit 3134254
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/kafka/manager/model/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,17 @@ case object SASL_MECHANISM_SCRAM512 extends SASLmechanism {
val stringId = "SCRAM-SHA-512"
}

case object SASL_MECHANISM_OAUTHBEARER extends SASLmechanism {
val stringId = "OAUTHBEARER"
}

object SASLmechanism {
private[this] val typesMap: Map[String, SASLmechanism] = Map(
SASL_MECHANISM_PLAIN.stringId -> SASL_MECHANISM_PLAIN
, SASL_MECHANISM_GSSAPI.stringId -> SASL_MECHANISM_GSSAPI
, SASL_MECHANISM_SCRAM256.stringId -> SASL_MECHANISM_SCRAM256
, SASL_MECHANISM_SCRAM512.stringId -> SASL_MECHANISM_SCRAM512
, SASL_MECHANISM_OAUTHBEARER.stringId -> SASL_MECHANISM_OAUTHBEARER
)

val formSelectList : IndexedSeq[(String,String)] = IndexedSeq(("DEFAULT", "DEFAULT")) ++ typesMap.toIndexedSeq.map(t => (t._1,t._2.stringId))
Expand Down

0 comments on commit 3134254

Please sign in to comment.