oauth

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DOMAIN        = "domain"
	CLIENT_ID     = "client_id"
	CLIENT_SECRET = "client_secret"

	OAUTH_URL = "oauth_url"
	GRANT_URL = "grant_url"
	TOKEN_URL = "token_url"
	USERS_URL = "users_url"
	USER_KEY  = "user_key"
	NICK_KEY  = "nick_key"

	REDIRECT_URI       = "redirect_uri"
	RESPONSE_TYPE      = "response_type"
	AUTHORIZATION_CODE = "authorization_code"
	GRANT_TYPE         = "grant_type"
	STATE              = "state"
	SCOPE              = "scope"
	CODE               = "code"

	API_PREFIX   = "api_prefix"
	TOKEN_PREFIX = "token_prefix"
	ACCESS_TOKEN = "access_token"
	EXPIRES_IN   = "expires_in"
)

Variables

View Source
var Inputs = map[string]map[string]string{}

Functions

func ClientCreate added in v1.9.7

func ClientCreate(m *ice.Message, domain, client_id, client_secret string, arg ...string)

Types

type Client added in v1.5.20

type Client struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Client) Auth added in v1.5.20

func (s Client) Auth(m *ice.Message, arg ...string)

func (Client) Config added in v1.6.1

func (s Client) Config(m *ice.Message, arg ...string)

func (Client) Delete added in v1.5.20

func (s Client) Delete(m *ice.Message, hash, api string, arg ...string) ice.Any

func (Client) Get added in v1.5.20

func (s Client) Get(m *ice.Message, hash, api string, arg ...string) ice.Any

func (Client) Inputs added in v1.5.20

func (s Client) Inputs(m *ice.Message, arg ...string)

func (Client) List added in v1.5.20

func (s Client) List(m *ice.Message, arg ...string)

func (Client) Login added in v1.5.20

func (s Client) Login(m *ice.Message, arg ...string)

func (Client) Login2 added in v1.8.0

func (s Client) Login2(m *ice.Message, arg ...string)

func (Client) OAuthURL added in v1.8.0

func (s Client) OAuthURL(m *ice.Message) string

func (Client) Orgs added in v1.5.20

func (s Client) Orgs(m *ice.Message, arg ...string)

func (Client) Post added in v1.5.20

func (s Client) Post(m *ice.Message, hash, api string, arg ...string) ice.Any

func (Client) Put added in v1.5.20

func (s Client) Put(m *ice.Message, hash, api string, arg ...string) ice.Any

func (Client) RedirectURI added in v1.5.20

func (s Client) RedirectURI(m *ice.Message) string

func (Client) Repo added in v1.5.20

func (s Client) Repo(m *ice.Message, arg ...string)

func (Client) Save added in v1.8.0

func (s Client) Save(m *ice.Message, hash, file, api string, arg ...string) ice.Any

func (Client) Sso added in v1.6.1

func (s Client) Sso(m *ice.Message, arg ...string)

func (Client) User added in v1.5.20

func (s Client) User(m *ice.Message, arg ...string)

type Server added in v1.6.1

type Server struct{ ice.Hash }

Jump to

Keyboard shortcuts

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