Browse Source

Update httpServer.go

Hakan Carlsson 7 years ago
parent
commit
ea6cd48721
1 changed files with 1 additions and 1 deletions
  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>