title: Get BasicAuth creds in Gin
body: <p>I have made a switch to Gin to try it out. Before the move I accessed the BasicAuth credentials (app_id and token) using the request object like this:</p>
  
  <pre><code>appId, token, _ := r.BasicAuth()
  </code></pre>
  
  <p>The <code>app_id</code> needs to be found in my database on every call so I'm using Gin middleware for this:</p>
  
  <pre><code>func CheckAppId() gin.HandlerFunc {
      return func(c *gin.Context) {
          //how do I access the BasicAuth creds here?
      }
  }
  </code></pre>
  
  <p>but I'm not sure how to access the BasicAuth creds without the request object.</p>