oauth

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package oauth implements facebook oauth package

Index

Constants

View Source
const (
	ScopeEmail   = "email"
	ScopeProfile = "profile"
)

scope list

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string
	ClientSecret string
	RedirectURL  string
	Scopes       []string
}

Config struct

type OAuth

type OAuth struct {
	// contains filtered or unexported fields
}

OAuth struct

func New

func New(config Config) *OAuth

New oauth

func (*OAuth) Config

func (oauth *OAuth) Config() *oauth2.Config

Config return google oauth2 configuration

Jump to

Keyboard shortcuts

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