Jelajahi Sumber

Update httpServer.go

Hakan Carlsson 7 tahun lalu
induk
melakukan
ea6cd48721
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      examples/httpServer.go

+ 1 - 1
examples/httpServer.go

@@ -45,7 +45,7 @@ func main() {
 func testAppHandler(w http.ResponseWriter, r *http.Request) {
 func testAppHandler(w http.ResponseWriter, r *http.Request) {
 	w.WriteHeader(http.StatusOK)
 	w.WriteHeader(http.StatusOK)
 	ctx := r.Context()
 	ctx := r.Context()
-	creds := ctx.Value(service.CTXKeyCredentials).(*credentials.Credentials)
+	creds := ctx.Value(service.CTXKeyCredentials).(goidentity.Identity)
 	fmt.Fprintf(w,
 	fmt.Fprintf(w,
 		`<html>
 		`<html>
 <h1>GOKRB5 Handler</h1>
 <h1>GOKRB5 Handler</h1>