token

package
v0.0.0-...-c6c9c2c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int    `json:"expires_in"`
	TokenType    string `json:"token_type"`
	Scope        string `json:"scope"`
}

type Service

type Service interface {
	GetAccessToken(aspspId, scopeType string) (string, error)
	RefreshAccessToken(aspspId, scopeType, refreshTokenData string) (*AccessToken, error)
	GetResourceAccessRefreshToken(aspspId, code string) (*AccessToken, error)
}

func NewService

func NewService(cfg cfg.Service) Service

Jump to

Keyboard shortcuts

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