oauth

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	On     bool                   `json:"-"`      //开关
	Key    string                 `json:"key"`    //App ID
	Secret string                 `json:"secret"` //Secret Key
	Name   string                 `json:"-"`      //标识,如:github,wechat,alipay等
	Extra  map[string]interface{} `json:"extra"`  //其它扩展数据
}

func NewConfig

func NewConfig() *Config

func (*Config) FromStore

func (c *Config) FromStore(name string, v echo.Store) *Config

func (*Config) ToAccount

func (c *Config) ToAccount(name string) *oauth2.Account

Jump to

Keyboard shortcuts

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