auth
auth/config.go
Introduced scopes. Created a Scope type and a scopeStore interface, along with the memstore methods for the scopeStore. This will allow applications to define access with granularity, so users can grant access to some data, not _all_ data. We're operating on the assumption that there won't be an unreasonable number of scopes defined, so there is no paging operation included for the ListScopes method. This is a decision that may have to be revisited in the future, depending on usecases.
1.1 --- a/config.go Thu Jan 29 20:40:55 2015 -0500 1.2 +++ b/config.go Fri Feb 20 22:34:43 2015 -0500 1.3 @@ -21,6 +21,7 @@ 1.4 ProfileStore profileStore 1.5 TokenStore tokenStore 1.6 SessionStore sessionStore 1.7 + ScopeStore scopeStore 1.8 Template *template.Template 1.9 LoginURI string 1.10 iterations int