auth
2014-07-18
auth/tokengen.go
Start rewriting the repo. This code originally was a carbon copy of https://github.com/RangelReale/osin, but I am methodically stripping out the extensible nature of it for a simpler interface, while simultaneously bringing the style into line with the Ducky style.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tokengen.go Fri Jul 18 07:13:22 2014 -0400 1.3 @@ -0,0 +1,11 @@ 1.4 +package oauth2 1.5 + 1.6 +import ( 1.7 + "encoding/base64" 1.8 + 1.9 + "code.google.com/p/go-uuid/uuid" 1.10 +) 1.11 + 1.12 +func newToken() string { 1.13 + return base64.StdEncoding.EncodeToString([]byte(uuid.New())) 1.14 +}