oauth

package
v0.0.0-...-9dbba9d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 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 interface {
	GetAuthorizationToken() (Token, apperrors.AppError)
}

func NewOauthClient

func NewOauthClient(client *http.Client, clientID, clientSecret, tokensEndpoint string) Client

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	Expiration  int64  `json:"expires_in"`
}

func (Token) EmptyOrExpired

func (token Token) EmptyOrExpired() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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