Skip to content

Commit

Permalink
added CreateOmeBasicAuthHeaderWord
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jan 26, 2023
1 parent ef31b23 commit 5e51085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ovenmedia/header_configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func (h *HeaderConfigurator) CreateBasicAuthHeaderEncoded(base64EncodedToken str
}


func (h *HeaderConfigurator) CreateOmeBasicAuthHeaderWord(word string) {
h.Headers["ome-access-token"] = "Basic " + base64.StdEncoding.EncodeToString([]byte(word))
}

func (h *HeaderConfigurator) CreateOmeBasicAuthHeader(username string, password string) {
h.Headers["ome-access-token"] = "Basic " + base64.StdEncoding.EncodeToString([]byte(username+":"+password))
}
Expand Down

0 comments on commit 5e51085

Please sign in to comment.