From 31db63e2757de555e3433528096691709f262a93 Mon Sep 17 00:00:00 2001 From: Anchor Date: Sat, 21 Feb 2015 21:31:44 -0800 Subject: [PATCH] Fix section "HTTP basic and digest authentication" in 14.4.md --- en/14.4.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/en/14.4.md b/en/14.4.md index dd5e2404..db4bd31d 100644 --- a/en/14.4.md +++ b/en/14.4.md @@ -10,12 +10,11 @@ Beego does not natively provide support for any of these three things, however y ## HTTP basic and digest authentication -These two certifications are some applications using relatively simple authentication, there are already open source third-party library supports both authentication: +Both HTTP basic and digest authentication are relatively simple techniques commonly used by web applications. There are already many open source third-party libraries which support these two authentication methods, such as: github.com/abbot/go-http-auth -The following code demonstrates how to use this library in order to achieve the introduction of beego Certification: - +The following code demonstrates how to use this library to implement authentication in a Beego application: package controllers @@ -49,7 +48,7 @@ The following code demonstrates how to use this library in order to achieve the this.TplNames = "index.tpl" } -The above code takes advantage of beego the prepare function in the normal logic function is called before the certification, so it is very simple to achieve a http auth, digest authentication is the same principle. +The above code takes advantage of Beego's `prepare()` function to perform authentication before allowing the normal flow of execution to proceed; as you can see, it's very simple to implement HTTP authentication. Digest authentication can be implemented in much the same way. ## OAuth and OAuth 2 certification