Documentation ¶
Index ¶
Constants ¶
View Source
const SessionName = "_gothic_session"
SessionName is the key used to access the session store.
Variables ¶
View Source
var (
ErrUndefinedProvider = errors.New("Undefined provider name")
)
Errors list
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { DefaultProvider string Store SessionStore }
Client OAuth authorize
func (*Client) Callback ¶
func (cli *Client) Callback(fnk func(user goth.User, err error, ctx echo.Context) error) echo.HandlerFunc
Callback from oauth server
func (*Client) GetAuthURL ¶
GetAuthURL starts the authentication process with the requested provided. It will return a URL that should be used to send users to.
It expects to be able to get the name of the provider from the query parameters as either "provider" or ":provider".
I would recommend using the BeginAuthHandler instead of doing all of these steps yourself, but that's entirely up to you.
Click to show internal directories.
Click to hide internal directories.