token

package
v0.0.0-...-52a41df Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 13 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 ClientAssertion

type ClientAssertion struct {
	Iss string `json:"iss"`
	Sub string `json:"sub"`
	Exp int64  `json:"exp"`
	Iat int64  `json:"iat"`
	Jti string `json:"jti"`
	Aud string `json:"aud"`
}

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