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
1 package oauth2
3 import (
4 "encoding/base64"
6 "code.google.com/p/go-uuid/uuid"
7 )
9 func newToken() string {
10 return base64.StdEncoding.EncodeToString([]byte(uuid.New()))
11 }