Documentation
¶
Overview ¶
Package github provides you access to Github's OAuth2 infrastructure.
Index ¶
- func Auth() gin.HandlerFunc
- func CheckAuthenticatedUser() gin.HandlerFunc
- func ExchangeToken(ctx *gin.Context) *oauth2.Token
- func GetLoginURL(state string) string
- func LoginHandler(ctx *gin.Context)
- func Session(name string) gin.HandlerFunc
- func Setup(redirectURL, credFile string, scopes []string, secret []byte, ...)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth() gin.HandlerFunc
func CheckAuthenticatedUser ¶ added in v1.5.3
func CheckAuthenticatedUser() gin.HandlerFunc
func GetLoginURL ¶
func LoginHandler ¶
func Session ¶
func Session(name string) gin.HandlerFunc
Types ¶
type Credentials ¶
Credentials stores google client-ids.
Click to show internal directories.
Click to hide internal directories.