auth

Paddy 2014-07-18

0:7a6f64db7246 Go to Latest

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.

History
paddy@0 1 package oauth2
paddy@0 2
paddy@0 3 import (
paddy@0 4 "encoding/base64"
paddy@0 5
paddy@0 6 "code.google.com/p/go-uuid/uuid"
paddy@0 7 )
paddy@0 8
paddy@0 9 func newToken() string {
paddy@0 10 return base64.StdEncoding.EncodeToString([]byte(uuid.New()))
paddy@0 11 }