auth

Paddy 2014-07-18 Child:3423c552e249

0:7a6f64db7246 Go to Latest

auth/client.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 "secondbit.org/uuid"
5 )
7 // Client information
8 type Client struct {
9 ID uuid.ID
10 Secret string
11 RedirectURI string
12 OwnerID uuid.ID
13 Name string
14 Logo string
15 }
17 func GetClient(id uuid.ID, ctx Context) (Client, error) {
18 return Client{}, nil
19 }
21 func createClient(name, logo, redirectURI string, owner uuid.ID, ctx Context) (Client, error) {
22 return Client{}, nil
23 }
25 func updateClient(client *Client, name, logo, redirectURI *string, ctx Context) error {
26 return nil
27 }
29 func removeClient(id uuid.ID, ctx Context) error {
30 return nil
31 }
33 func listClients(id uuid.ID, page, num int, ctx Context) ([]Client, error) {
34 return []Client{}, nil
35 }