package auth

import (
	"io"
	"log"
)

type Context struct {
	Config   ServerConfig
	Clients  ClientStore
	Tokens   TokenStore
	Profiles ProfileStore
	Log      *log.Logger
}

func (c Context) RenderError(w io.Writer, err error) {
	// TODO: write error to w in a template
}

func (c Context) RenderJSONError(w io.Writer, code, description, baseURI string) {
	// TODO: write error to w in json formatting
}

func (c Context) RenderConfirmation(w io.Writer) {
	// TODO: render HTML confirmation page
}

func (c Context) RenderLogin(w io.Writer) {
	// TODO: render HTML login page
}

func (c Context) RenderJSONToken(w io.Writer, data AccessData) {
	// TODO: render token to w in json formatting
}
