oauth

package
v0.0.0-...-3d071a2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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