mirror of
https://github.com/int128/kubelogin.git
synced 2026-03-02 17:00:20 +00:00
Change authentication success page more descriptive (#312)
* Refactor: rename to authcode_browser.go * Change authentication success page more descriptive
This commit is contained in:
17
pkg/templates/httpserver/httpserver.go
Normal file
17
pkg/templates/httpserver/httpserver.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/int128/kubelogin/pkg/templates"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/AuthCodeBrowserSuccessHTML", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Add("content-type", "text/html")
|
||||
_, _ = w.Write([]byte(templates.AuthCodeBrowserSuccessHTML))
|
||||
})
|
||||
log.Printf("http://localhost:8000/AuthCodeBrowserSuccessHTML")
|
||||
log.Fatal(http.ListenAndServe("127.0.0.1:8000", nil))
|
||||
}
|
||||
Reference in New Issue
Block a user