auth

Paddy 2014-09-01 Parent:1aa3a85ff853 Child:9fc5fd8196b4

24:c5c4a991bc35 Browse Files

Remove the deprecated storage file. We're no longer using the osin storage system, so let's remove our old storage file completely.

storage.go

     1.1 --- a/storage.go	Mon Sep 01 09:13:52 2014 -0400
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,35 +0,0 @@
     1.4 -package auth
     1.5 -
     1.6 -import "secondbit.org/uuid"
     1.7 -
     1.8 -type ClientStore interface {
     1.9 -	GetClient(id uuid.ID) (Client, error)
    1.10 -	CreateClient(name, logo, redirectURI string, owner uuid.ID) (Client, error)
    1.11 -	UpdateClient(client uuid.ID, name, logo, redirectURI *string) error
    1.12 -	RemoveClient(id uuid.ID) error
    1.13 -	ListClients(id uuid.ID, page, num int) ([]Client, error)
    1.14 -}
    1.15 -
    1.16 -type TokenStore interface {
    1.17 -	SaveAuthorization(AuthorizeData) error
    1.18 -	GetAuthorization(code string) (AuthorizeData, error)
    1.19 -	RemoveAuthorization(code string) error
    1.20 -
    1.21 -	SaveAccess(AccessData) error
    1.22 -	GetAccess(token string) (AccessData, error)
    1.23 -	RemoveAccess(token string) error
    1.24 -
    1.25 -	GetRefresh(token string) (AccessData, error)
    1.26 -	RemoveRefresh(token string) error
    1.27 -}
    1.28 -
    1.29 -type ProfileStore interface {
    1.30 -	GetProfile(username, password string) (uuid.ID, error)
    1.31 -}
    1.32 -
    1.33 -type SessionStore interface {
    1.34 -	GetSession(token string) (Session, error)
    1.35 -	GetAllSessions(username string) ([]Session, error)
    1.36 -	SetSession(Session) error
    1.37 -	ExpireSession(token string) error
    1.38 -}