diff --git a/README.md b/README.md index b65e133a..afaa470c 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ import ( ) func hello(w http.ResponseWriter, r *http.Request) { - fmt.Fprintf(w, "Hello, %s!", samlsp.Token(r.Context()).Attributes.Get("cn")) + fmt.Fprintf(w, "Hello, %s!", samlsp.AttributeFromContext(r.Context(), "cn")) } func main() {