Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackHandler ¶
func CallbackHandler(w http.ResponseWriter, r *http.Request)
func GenerateLoginHandler ¶
func GenerateLoginHandler(w http.ResponseWriter, r *http.Request)
func HealthCheckHandler ¶
func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
func RichHyperLink ¶
func RichHyperLink(s string) *dfcx.RichContents
Types ¶
type GenerateLoginHandle ¶
type GenerateLoginHandle struct {
*RedisStateManager
}
func NewGenerateLoginHandle ¶
func NewGenerateLoginHandle(c *redis.Client) *GenerateLoginHandle
func (*GenerateLoginHandle) Init ¶
func (h *GenerateLoginHandle) Init(c *redis.Client)
func (*GenerateLoginHandle) ServeHTTP ¶
func (h *GenerateLoginHandle) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RedisStateManager ¶
func NewRedisStateManager ¶
func NewRedisStateManager(c *redis.Client) *RedisStateManager
func (*RedisStateManager) FromRequest ¶
func (rsm *RedisStateManager) FromRequest(r *http.Request) (*dfcx.WebhookRequest, error)
type State ¶
type State struct { Session string `json:"session"` SessionId string `json:"sessionId,omitempty"` AccessToken string `json:"accessToken,omitempty"` }
func (*State) MarshalBinary ¶
func (*State) SetSessionId ¶
func (s *State) SetSessionId(r *dfcx.WebhookRequest) error
func (*State) UnmarshalBinary ¶
func (*State) UnmarshalString ¶
Click to show internal directories.
Click to hide internal directories.