store

package
v0.0.0-...-42dd1ba Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthorityTable

func CreateAuthorityTable(db *bun.DB, ctx context.Context) error

func LoadAuthority

func LoadAuthority(db *bun.DB, ctx context.Context, authority *id4me.Authority) (bool, error)

func SaveAuthority

func SaveAuthority(db *bun.DB, ctx context.Context, authority *id4me.Authority) error

Types

type AuthorityModel

type AuthorityModel struct {
	Issuer                  string `bun:",pk"`
	ClientId                string `bun:",unique,notnull"`
	ClientSecret            string `bun:",notnull"`
	ClientRegistrationUri   string `bun:",nullzero"`
	RegistrationAccessToken string `bun:",nullzero"`
	ClientSecretExpiresAt   *time.Time
	ClientIdIssuedAt        *time.Time
}

Jump to

Keyboard shortcuts

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