accesstoken

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	ID                  string            `json:"id"`
	Name                string            `json:"name"`
	Enabled             bool              `json:"enabled"`
	PersonalAccessToken bool              `json:"personalAccessToken"`
	Owner               string            `json:"owner"`
	CreationDate        string            `json:"creationDate"`
	Scopes              []string          `json:"scopes"`
	LastUsedDate        *string           `json:"lastUsedDate,omitempty"`
	LastUsedIpAddress   *string           `json:"lastUsedIpAddress,omitempty"`
	ExpirationDate      *string           `json:"expirationDate,omitempty"`
	ModifiedDate        *string           `json:"modifiedDate,omitempty"`
	AdditionalMetadata  map[string]string `json:"additionalMetadata,omitempty"`
}

func GetAccessTokenMetadata

func GetAccessTokenMetadata(ctx context.Context, client source, accessToken string) (Response, error)

GetAccessTokenMetadata returns the metadata of a specified access token

Required scope: Any access token scope

Jump to

Keyboard shortcuts

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