Documentation ¶
Index ¶
- Constants
- type InKeySearchOptions
- type IntegrationKey
- type Store
- func (s *Store) Authorize(ctx context.Context, tok authtoken.Token, t Type) (context.Context, error)
- func (s *Store) AuthorizeUIK(ctx context.Context, tokStr string) (context.Context, error)
- func (s *Store) Config(ctx context.Context, db gadb.DBTX, keyID uuid.UUID) (*gadb.UIKConfigV1, error)
- func (s *Store) Create(ctx context.Context, dbtx gadb.DBTX, i *IntegrationKey) (*IntegrationKey, error)
- func (s *Store) Delete(ctx context.Context, dbtx gadb.DBTX, id string) error
- func (s *Store) DeleteMany(ctx context.Context, dbtx gadb.DBTX, ids []string) error
- func (s *Store) DeleteSecondaryToken(ctx context.Context, db gadb.DBTX, id uuid.UUID) error
- func (s *Store) FindAllByService(ctx context.Context, serviceID string) ([]IntegrationKey, error)
- func (s *Store) FindOne(ctx context.Context, id string) (*IntegrationKey, error)
- func (s *Store) GenerateToken(ctx context.Context, db gadb.DBTX, id uuid.UUID) (string, error)
- func (s *Store) GetServiceID(ctx context.Context, id string, t Type) (string, error)
- func (s *Store) PromoteSecondaryToken(ctx context.Context, db gadb.DBTX, id uuid.UUID) error
- func (s *Store) Search(ctx context.Context, opts *InKeySearchOptions) ([]IntegrationKey, error)
- func (s *Store) SetConfig(ctx context.Context, db gadb.DBTX, keyID uuid.UUID, cfg *gadb.UIKConfigV1) error
- func (s *Store) TokenHints(ctx context.Context, db gadb.DBTX, id uuid.UUID) (primary, secondary string, err error)
- func (s *Store) ValidateUIKConfigV1(ctx context.Context, cfg gadb.UIKConfigV1) error
- type Type
Constants ¶
View Source
const ( MaxRules = 100 MaxActions = 10 MaxParams = 10 )
View Source
const Audience = "uik-key-v1"
Audience is the JWT audience for UIK API keys.
View Source
const Issuer = "goalert"
Issuer is the JWT issuer for UIK API keys.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InKeySearchOptions ¶ added in v0.30.1
type InKeySearchOptions struct { Search string `json:"s,omitempty"` After string `json:"a,omitempty"` // Omit specifies a list of key ids to exclude from the results. Omit []string `json:"o,omitempty"` Limit int `json:"-"` }
InKeySearchOptions allow filtering and paginating the list of rotations.
type IntegrationKey ¶
type IntegrationKey struct { ID string `json:"id"` Name string `json:"name"` Type Type `json:"type"` ServiceID string `json:"service_id"` ExternalSystemName string }
func (IntegrationKey) Normalize ¶
func (i IntegrationKey) Normalize() (*IntegrationKey, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AuthorizeUIK ¶ added in v0.33.0
func (*Store) Create ¶
func (s *Store) Create(ctx context.Context, dbtx gadb.DBTX, i *IntegrationKey) (*IntegrationKey, error)
func (*Store) DeleteMany ¶ added in v0.32.0
func (*Store) DeleteSecondaryToken ¶ added in v0.33.0
func (*Store) FindAllByService ¶
func (*Store) GenerateToken ¶ added in v0.33.0
func (*Store) GetServiceID ¶
func (*Store) PromoteSecondaryToken ¶ added in v0.33.0
func (*Store) Search ¶ added in v0.30.1
func (s *Store) Search(ctx context.Context, opts *InKeySearchOptions) ([]IntegrationKey, error)
func (*Store) TokenHints ¶ added in v0.33.0
func (*Store) ValidateUIKConfigV1 ¶ added in v0.33.0
Click to show internal directories.
Click to hide internal directories.