auth
auth/context.go
Add logging. Log errors when obtaining and saving access tokens.
1 package auth
3 import (
4 "io"
5 "log"
6 )
8 type Context struct {
9 Config ServerConfig
10 Clients ClientStore
11 Tokens TokenStore
12 Profiles ProfileStore
13 Log *log.Logger
14 }
16 func (c Context) RenderError(w io.Writer, err error) {
17 }
19 func (c Context) RenderJSONError(w io.Writer, code, description, baseURI string) {
20 }
22 func (c Context) RenderConfirmation(w io.Writer) {
23 }
25 func (c Context) RenderLogin(w io.Writer) {
26 }
28 func (c Context) RenderJSONToken(w io.Writer, data AccessData) {
29 }