Documentation ¶
Index ¶
Constants ¶
View Source
const AUTH_URL = "https://accounts.google.com/o/oauth2/auth"
View Source
const DEFAULT_SCOPE = "https://www.googleapis.com/auth/userinfo.profile"
View Source
const INI_SECTION_NAME = "middleware.oauth2.google"
View Source
const PROVIDER_NAME = "google"
View Source
const TOKEN_URL = "https://accounts.google.com/o/oauth2/token"
Variables ¶
This section is empty.
Functions ¶
func NewAuthConfig ¶
Returns a new Google OAuth2 configuration with provided parameter. `clientId`, `clientSecret` is required. `scope` can be empty (""), in which the default scoep (https://www.googleapis.com/auth/userinfo.profile) would be used.
func NewAuthConfigFromFile ¶
Return a *OAuth2Config from configuration file. process configuration file will be used if filepath is "".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.