models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientID

type ClientID string

ClientID defines a client id token.

type IAM

type IAM map[ClientID]Secret

IAM is the collection of all valid client credentials and tokens.

type Secret

type Secret struct {
	// ClientSecret is the client secret key for the corresponding client id
	ClientSecret string `json:"client_secret"`
	// AppName defines the application that uses this credential
	AppName        string    `json:"app_name"`
	ExpirationDate time.Time `json:"-"`
}

Secret holds information on the client secret key.

Jump to

Keyboard shortcuts

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