Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ID string
Secret string
OAuthHost string
Host string
State string
Login HandleConf
Logout HandleConf
Callback HandleConf
}
Basic configuration for an Auth
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is e struct that eases Github OAuth and resource handling
func NewEngine ¶
func NewEngine(conf Config, root *gin.RouterGroup) *Engine
NewEngine creates a new Engine using and adds the handle for authentication
func (*Engine) EnsureUser ¶
type HandleConf ¶
HandleConf contains info about and Handler
Click to show internal directories.
Click to hide internal directories.