google

package
v0.0.0-...-f26991d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 7 Imported by: 0

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

func NewAuthConfig(clientId string, clientSecret string, scope string) *OAuth2Config

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

func NewAuthConfigFromFile(filepath string) (*OAuth2Config, error)

Return a *OAuth2Config from configuration file. process configuration file will be used if filepath is "".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL