Documentation ¶
Index ¶
- Constants
- func Callback(ctx context.Context) http.HandlerFunc
- func CharacterDetails(ctx context.Context) http.HandlerFunc
- func Custom(ctx context.Context) http.HandlerFunc
- func NewLogin(ctx context.Context) http.HandlerFunc
- func NewProvider(ctx context.Context) context.Context
- func Ping(w http.ResponseWriter, _req *http.Request)
- func Preferences(ctx context.Context) http.HandlerFunc
- func TopRecipients(ctx context.Context) http.HandlerFunc
- func VerifyTokenHack(ctx context.Context, token string) (charID int32, owner string, err error)
- type StateStore
- type VerifyModel
Constants ¶
View Source
const RFC1123 = "Mon, 02 Jan 2006 15:04:05 GMT"
RFC1123 to be used with UTC timezone *only*
Variables ¶
This section is empty.
Functions ¶
func Callback ¶
func Callback(ctx context.Context) http.HandlerFunc
Callback receives oauth returns from sso
func CharacterDetails ¶
func CharacterDetails(ctx context.Context) http.HandlerFunc
CharacterDetails returns JSON describing the character
func Custom ¶
func Custom(ctx context.Context) http.HandlerFunc
Custom character view, defined by character preferences
func NewLogin ¶
func NewLogin(ctx context.Context) http.HandlerFunc
NewLogin creates a new state and throws the user into the oauth flow
func NewProvider ¶
NewProvider creates our oidc provider
func Preferences ¶
func Preferences(ctx context.Context) http.HandlerFunc
Preferences handles getting and setting user preferences
func TopRecipients ¶
func TopRecipients(ctx context.Context) http.HandlerFunc
TopRecipients returns JSON describing the current top donation recipients
Types ¶
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
StateStore stores state uuids we've given out
type VerifyModel ¶
VerifyModel is needed as a hack until an sso issue is fixed
Click to show internal directories.
Click to hide internal directories.