auth

Paddy 2014-08-01 Parent:7a6f64db7246 Child:3423c552e249

1:7b9e0fc20256 Go to Latest

auth/client.go

Continue our descent to horribleness. Remove all the nonsense about "extensibility" and "clean separation of concerns", instead hardcoding connections to decisions. Remove all those "test" things that stopped passing.

History
paddy@0 1 package oauth2
paddy@0 2
paddy@0 3 import (
paddy@0 4 "secondbit.org/uuid"
paddy@0 5 )
paddy@0 6
paddy@0 7 // Client information
paddy@0 8 type Client struct {
paddy@0 9 ID uuid.ID
paddy@0 10 Secret string
paddy@0 11 RedirectURI string
paddy@0 12 OwnerID uuid.ID
paddy@0 13 Name string
paddy@0 14 Logo string
paddy@0 15 }
paddy@0 16
paddy@0 17 func GetClient(id uuid.ID, ctx Context) (Client, error) {
paddy@0 18 return Client{}, nil
paddy@0 19 }
paddy@0 20
paddy@0 21 func createClient(name, logo, redirectURI string, owner uuid.ID, ctx Context) (Client, error) {
paddy@0 22 return Client{}, nil
paddy@0 23 }
paddy@0 24
paddy@0 25 func updateClient(client *Client, name, logo, redirectURI *string, ctx Context) error {
paddy@0 26 return nil
paddy@0 27 }
paddy@0 28
paddy@0 29 func removeClient(id uuid.ID, ctx Context) error {
paddy@0 30 return nil
paddy@0 31 }
paddy@0 32
paddy@0 33 func listClients(id uuid.ID, page, num int, ctx Context) ([]Client, error) {
paddy@0 34 return []Client{}, nil
paddy@0 35 }