Documentation
¶
Index ¶
- Variables
- func CheckActiveGrant(ctx context.Context, tx postgres.DBTX, id int64) error
- func CheckMachineAdminSession(ctx context.Context, tx postgres.DBTX, org, user slug.Slug, ...) error
- func ConsumeCredential(ctx context.Context, tx postgres.DBTX, id int64, hash string) error
- func CreateCredential(ctx context.Context, tx postgres.DBTX, credential Credential) (time.Time, error)
- func CreateMachineGrant(ctx context.Context, tx postgres.DBTX, issuance Issuance, ...) (int64, error)
- func CreatePendingConsent(ctx context.Context, tx postgres.DBTX, pending PendingConsent, ...) error
- func CreateUserGrant(ctx context.Context, tx postgres.DBTX, issuance Issuance, user, org slug.Slug, ...) (int64, error)
- func DisconnectMachineClient(ctx context.Context, tx postgres.DBTX, issuance Issuance, org, key slug.Slug) error
- func DisconnectUserClient(ctx context.Context, tx postgres.DBTX, issuance Issuance, user, org slug.Slug) error
- func LockGrant(ctx context.Context, tx postgres.DBTX, issuance Issuance, hash, kind string) (int64, error)
- func NarrowUserGrantScopes(ctx context.Context, tx postgres.DBTX, grantID int64, allowed []string) error
- func ReadMachineClientSecretHash(ctx context.Context, db postgres.DBTX, issuance Issuance) (string, error)
- func RegisterMachineClient(ctx context.Context, tx postgres.DBTX, issuance Issuance, org, key slug.Slug, ...) (time.Time, error)
- func RevokeGrant(ctx context.Context, tx postgres.DBTX, id int64) error
- type Credential
- type CredentialState
- type Issuance
- type MachinePrincipal
- type PendingConsent
- type UserPrincipal
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = xerror.New(xerror.KindNotFound, "MCP_OAUTH_GRANT_MISSING", "OAuth grant is unavailable")
Functions ¶
func CheckActiveGrant ¶
func ConsumeCredential ¶
func CreateCredential ¶
func CreateMachineGrant ¶
func CreatePendingConsent ¶
func CreateUserGrant ¶
func DisconnectMachineClient ¶
func DisconnectUserClient ¶
func NarrowUserGrantScopes ¶
func RegisterMachineClient ¶
Types ¶
type Credential ¶
type CredentialState ¶
func ReadCredential ¶
type MachinePrincipal ¶
type PendingConsent ¶
Click to show internal directories.
Click to hide internal directories.