From ad43eca6d5ff80683f2fb39a483dc03c36652b4d Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Mon, 10 Feb 2020 15:18:38 +0100 Subject: [PATCH] Update README.md (#261) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {