Documentation ¶
Index ¶
Constants ¶
View Source
const StateCookieName = "reddit_oauth2_state"
View Source
const UserAgent = "SteemWatch"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(clientID, clientSecret, redirectURL string, forceSSL bool) *Authenticator
func (*Authenticator) Authenticate ¶
func (authenticator *Authenticator) Authenticate(ctx echo.Context) error
func (*Authenticator) Callback ¶
func (authenticator *Authenticator) Callback(ctx echo.Context) (*auth.UserProfile, error)
Click to show internal directories.
Click to hide internal directories.