Documentation
¶
Overview ¶
Package osecure/state_handler provides state generator and verifier in OAuth flow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DefaultStateHandler ¶
func (DefaultStateHandler) Generate ¶
func (sh DefaultStateHandler) Generate(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request) (string, error)
func (DefaultStateHandler) Verify ¶
func (sh DefaultStateHandler) Verify(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request, state string) (string, error)
type JSONStateHandler ¶
func (JSONStateHandler) Generate ¶
func (sh JSONStateHandler) Generate(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request) (string, error)
func (JSONStateHandler) Verify ¶
func (sh JSONStateHandler) Verify(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request, state string) (string, error)
type SimpleStateHandler ¶
type SimpleStateHandler struct {
ContinueURI string
}
func (SimpleStateHandler) Generate ¶
func (sh SimpleStateHandler) Generate(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request) (string, error)
func (SimpleStateHandler) Verify ¶
func (_ SimpleStateHandler) Verify(cookieStore *sessions.CookieStore, w http.ResponseWriter, r *http.Request, state string) (string, error)
Click to show internal directories.
Click to hide internal directories.