瀏覽代碼

Update httpServer.go

Hakan Carlsson 7 年之前
父節點
當前提交
ea6cd48721
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {
 	w.WriteHeader(http.StatusOK)
 	ctx := r.Context()
-	creds := ctx.Value(service.CTXKeyCredentials).(*credentials.Credentials)
+	creds := ctx.Value(service.CTXKeyCredentials).(goidentity.Identity)
 	fmt.Fprintf(w,
 		`<html>
 <h1>GOKRB5 Handler</h1>