auth
auth/context.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.
| paddy@0 | 1 package oauth2 |
| paddy@0 | 2 |
| paddy@1 | 3 import "io" |
| paddy@1 | 4 |
| paddy@0 | 5 type Context struct { |
| paddy@1 | 6 Config ServerConfig |
| paddy@1 | 7 Clients ClientStore |
| paddy@1 | 8 Tokens TokenStore |
| paddy@1 | 9 Profiles ProfileStore |
| paddy@0 | 10 } |
| paddy@1 | 11 |
| paddy@1 | 12 func (c Context) RenderError(w io.Writer, err error) { |
| paddy@1 | 13 } |
| paddy@1 | 14 |
| paddy@1 | 15 func (c Context) RenderConfirmation(w io.Writer) { |
| paddy@1 | 16 } |
| paddy@1 | 17 |
| paddy@1 | 18 func (c Context) RenderLogin(w io.Writer) { |
| paddy@1 | 19 } |