1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknown 2014-04-13 03:14:43 -04:00
parent 5c2da610a2
commit 9d983f27d6
7 changed files with 9 additions and 16 deletions

View file

@ -9,7 +9,6 @@ package oauth2
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
@ -95,11 +94,6 @@ func (t *token) ExpiryTime() time.Time {
return t.Expiry
}
// Formats tokens into string.
func (t *token) String() string {
return fmt.Sprintf("tokens: %v", t)
}
// Returns a new Google OAuth 2.0 backend endpoint.
func Google(opts *Options) martini.Handler {
opts.AuthUrl = "https://accounts.google.com/o/oauth2/auth"