Documentation
¶
Overview ¶
Package github provides you access to Github's OAuth2 infrastructure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthenticatedUser ¶
func CheckAuthenticatedUser() gin.HandlerFunc
CheckAuthenticatedUser will be implemented as a controller for authentication for every api in a group
func LoginHandler ¶
LoginHandler save in the cookie the state and return the url needed for authentication with Github
func Session ¶
func Session(name string) gin.HandlerFunc
Session is the function needed by the handler github to initialize the session
Types ¶
type AuthUser ¶
type AuthUser struct {
Login string `json:"login"`
Name string `json:"name"`
OrganizationNeeded bool `json:"organization_needed"`
}
AuthUser rapresents datas of authenticated user
type Credentials ¶
Credentials stores google client-ids.
Click to show internal directories.
Click to hide internal directories.