github.com/kevinburke/google-oauth-handler (go): Package google_oauth_handler transparently handles OAuth authentication with Google.  Create an Authenticator and then insert it as middleware in front of any resources you want to protect behind Google login, via authenticator.Handle. Handle will call the next middleware with (w, r, *Token), which you can use to make requests to the Google API.  The Authenticator handles the OAuth workflow for you, redirecting users to Google, handling the callback and setting an encrypted cookie in the user's browser.
Keywords: golang|google|google-oauth-handler|middleware|oauth2