oauth

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id                   uint        `json:"_id,omitempty"`
	Name                 string      `json:"name"`
	Code                 string      `json:"code,omitempty"`
	Secret               string      `json:"-"`
	RedirectUri          string      `json:"uri"`
	UserData             interface{} `json:"-"`
	CreatedAt            time.Time   `json:"created,omitempty"`
	AllowedGrantTypes    []string    `json:"grant_types,omitempty"`
	AllowedResponseTypes []string    `json:"response_types,omitempty"`
	AllowedScopes        []string    `json:"scopes,omitempty"`
}

func NewClient

func NewClient(name, code, secret, redirectUri string) *Client

func (*Client) GetId

func (c *Client) GetId() string

func (*Client) GetRedirectUri

func (c *Client) GetRedirectUri() string

func (*Client) GetSecret

func (c *Client) GetSecret() string

func (*Client) GetUserData

func (c *Client) GetUserData() interface{}

type Scope

type Scope struct {
	Name        string
	Label       string
	Description string
	IsDefault   bool
}

Jump to

Keyboard shortcuts

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