Versions in this module Expand all Collapse all v0 v0.0.14 Apr 22, 2026 v0.0.13 Apr 22, 2026 v0.0.12 Apr 22, 2026 v0.0.11 Apr 21, 2026 Changes in this version + const SecurityAPIKeyAuth type UserInfo + func (u UserInfo) HasAllScopes(scopes ...string) bool + func (u UserInfo) HasScope(scope string) bool v0.0.9 Apr 21, 2026 Changes in this version + const KeyListMax + type KeyList struct + Body []Key + Count uint + func (k KeyList) String() string + func (list *KeyList) Scan(row pg.Row) error + func (list *KeyList) ScanCount(row pg.Row) error + type KeyListRequest struct + Expired *bool + User *UserID + func (req KeyListRequest) Query() url.Values + func (req KeyListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + func (req KeyListRequest) String() string v0.0.8 Apr 20, 2026 Changes in this version + const ScopeAuthKeyRead + const ScopeAuthKeyWrite + type Key struct + CreatedAt time.Time + ID KeyID + ModifiedAt time.Time + Status *UserStatus + Token string + User UserID + func (k *Key) Scan(row pg.Row) error + func (k Key) String() string + type KeyID uuid.UUID + func KeyIDFromString(s string) (KeyID, error) + func (id KeyID) Select(bind *pg.Bind, op pg.Op) (string, error) + func (k *KeyID) UnmarshalJSON(data []byte) error + func (k *KeyID) UnmarshalText(text []byte) error + func (k KeyID) MarshalJSON() ([]byte, error) + func (k KeyID) MarshalText() ([]byte, error) + func (k KeyID) String() string + type KeyMeta struct + ExpiresAt *time.Time + Name string + func (k KeyMeta) Insert(bind *pg.Bind) (string, error) + func (k KeyMeta) String() string + func (k KeyMeta) Update(bind *pg.Bind) error + type KeySelector struct + ID KeyID + Query string + User *UserID + func (k KeySelector) Select(bind *pg.Bind, op pg.Op) (string, error) + type KeyToken struct + Query string + Token string + func (k KeyToken) Select(bind *pg.Bind, op pg.Op) (string, error) v0.0.7 Apr 20, 2026 v0.0.6 Apr 20, 2026 v0.0.5 Apr 20, 2026 v0.0.4 Apr 20, 2026 v0.0.3 Apr 20, 2026 v0.0.2 Apr 20, 2026 Changes in this version + const DefaultRefreshTTL + const DefaultSchema + const DefaultSessionTTL + const GroupListMax + const GroupSysAdmin + const IdentityListMax + const ProviderKeyLocal + const ScopeAuthGroupRead + const ScopeAuthGroupWrite + const ScopeAuthUserRead + const ScopeAuthUserWrite + const ScopeListMax + const SecurityBearerAuth + const UserListMax + var GroupSysAdminScopes = []string + var Metrics string + var Objects string + var Queries string + func IsSystemGroup(id string) bool + func IsValidUserStatus(status UserStatus) bool + type AuthorizationCodeRequest struct + Code string + CodeVerifier string + Meta MetaMap + Nonce string + Provider string + RedirectURI string + func (req *AuthorizationCodeRequest) Validate() error + type ChangeNotification struct + Action string + Schema string + Table string + type Group struct + ID string + func (g Group) String() string + func (group *Group) Scan(row pg.Row) error + func (group Group) Select(bind *pg.Bind, op pg.Op) (string, error) + type GroupInsert struct + ID string + func (g GroupInsert) String() string + func (group GroupInsert) Insert(bind *pg.Bind) (string, error) + type GroupList struct + Body []Group + Count uint + func (g GroupList) String() string + func (list *GroupList) Scan(row pg.Row) error + func (list *GroupList) ScanCount(row pg.Row) error + type GroupListRequest struct + func (req GroupListRequest) Query() url.Values + func (req GroupListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + func (req GroupListRequest) String() string + type GroupMeta struct + Description *string + Enabled *bool + Meta MetaMap + Scopes []string + func (g GroupMeta) String() string + func (group GroupMeta) Insert(bind *pg.Bind) (string, error) + func (group GroupMeta) Update(bind *pg.Bind) error + type Identity struct + CreatedAt time.Time + ModifiedAt time.Time + User UserID + func (i *Identity) Scan(row pg.Row) error + func (i Identity) RedactedString() string + func (i Identity) String() string + type IdentityInsert struct + func NewIdentityFromClaims(claims map[string]any) (IdentityInsert, error) + func (i IdentityInsert) Insert(bind *pg.Bind) (string, error) + func (i IdentityInsert) Name() string + func (i IdentityInsert) RedactedString() string + func (i IdentityInsert) String() string + type IdentityKey struct + Provider string + Sub string + func (key IdentityKey) RedactedString() string + func (key IdentityKey) Select(bind *pg.Bind, op pg.Op) (string, error) + func (key IdentityKey) String() string + type IdentityList struct + Body []Identity + Count uint + func (list *IdentityList) Scan(row pg.Row) error + func (list *IdentityList) ScanCount(row pg.Row) error + func (list IdentityList) String() string + type IdentityListRequest struct + User *uuid.UUID + func (req IdentityListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + func (req IdentityListRequest) String() string + type IdentityMeta struct + Claims map[string]any + Email string + func (i IdentityMeta) Insert(bind *pg.Bind) (string, error) + func (i IdentityMeta) Update(bind *pg.Bind) error + func (meta IdentityMeta) RedactedString() string + func (meta IdentityMeta) String() string + type MetaMap map[string]any + func (meta *MetaMap) Scan(src any) error + func (meta *MetaMap) UnmarshalJSON(data []byte) error + func (meta *MetaMap) UnmarshalText(text []byte) error + func (meta MetaMap) Map() map[string]any + func (meta MetaMap) RedactedString() string + func (meta MetaMap) String() string + func (meta MetaMap) Value() (driver.Value, error) + type PublicClientConfiguration struct + ClientID string + Issuer string + type PublicClientConfigurations map[string]PublicClientConfiguration + func (cfg PublicClientConfigurations) String() string + type RefreshRequest struct + Token string + type ScopeList struct + Body []string + Count uint + func (list *ScopeList) Scan(row pg.Row) error + func (list *ScopeList) ScanCount(row pg.Row) error + func (list ScopeList) String() string + type ScopeListRequest struct + Q string + func (req ScopeListRequest) Query() url.Values + func (req ScopeListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + func (req ScopeListRequest) String() string + type Session struct + CreatedAt time.Time + ExpiresAt time.Time + ID SessionID + RefreshCounter uint64 + RefreshExpiresAt time.Time + User UserID + func (s *Session) Scan(row pg.Row) error + func (s Session) String() string + type SessionID uuid.UUID + func SessionIDFromString(s string) (SessionID, error) + func (id *SessionID) UnmarshalJSON(data []byte) error + func (id *SessionID) UnmarshalText(text []byte) error + func (id SessionID) MarshalJSON() ([]byte, error) + func (id SessionID) MarshalText() ([]byte, error) + func (id SessionID) Select(bind *pg.Bind, op pg.Op) (string, error) + func (id SessionID) String() string + type SessionInsert struct + ExpiresIn *time.Duration + RefreshExpiresIn *time.Duration + User UserID + func (s SessionInsert) Insert(bind *pg.Bind) (string, error) + func (s SessionInsert) Update(bind *pg.Bind) error + type SessionMeta struct + ExpiresIn *time.Duration + RefreshExpiresIn *time.Duration + RevokedAt *time.Time + func (s SessionMeta) Insert(bind *pg.Bind) (string, error) + func (s SessionMeta) Update(bind *pg.Bind) error + type TokenResponse struct + Token string + UserInfo *UserInfo + type User struct + Claims map[string]any + CreatedAt time.Time + DisabledGroups []string + EffectiveMeta MetaMap + ID UserID + ModifiedAt *time.Time + Scopes []string + func (u *User) Scan(row pg.Row) error + func (u *User) UUID() uuid.UUID + func (u User) HasAllScopes(scopes ...string) bool + func (u User) HasScope(scope string) bool + func (u User) RedactedString() string + func (u User) String() string + type UserGroupInsert struct + Groups []string + User UserID + func (insert UserGroupInsert) Insert(bind *pg.Bind) (string, error) + func (insert UserGroupInsert) Update(_ *pg.Bind) error + type UserGroupList []string + func (list *UserGroupList) Scan(row pg.Row) error + type UserGroupListRequest struct + User UserID + func (req UserGroupListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + type UserID uuid.UUID + func UserIDFromString(s string) (UserID, error) + func (id *UserID) UnmarshalJSON(data []byte) error + func (id *UserID) UnmarshalText(text []byte) error + func (id UserID) MarshalJSON() ([]byte, error) + func (id UserID) MarshalText() ([]byte, error) + func (id UserID) String() string + func (user UserID) Select(bind *pg.Bind, op pg.Op) (string, error) + type UserInfo struct + Email string + Groups []string + Name string + Scopes []string + Sub UserID + func NewUserInfo(user *User) *UserInfo + type UserList struct + Body []User + Count uint + func (list *UserList) Scan(row pg.Row) error + func (list *UserList) ScanCount(row pg.Row) error + func (u UserList) String() string + type UserListRequest struct + Email string + Status []UserStatus + func (req UserListRequest) Query() url.Values + func (req UserListRequest) Select(bind *pg.Bind, op pg.Op) (string, error) + func (u UserListRequest) RedactedString() string + func (u UserListRequest) String() string + type UserMeta struct + Email string + ExpiresAt *time.Time + Groups []string + Meta MetaMap + Name string + Status *UserStatus + func (u UserMeta) Insert(bind *pg.Bind) (string, error) + func (u UserMeta) RedactedString() string + func (u UserMeta) String() string + func (u UserMeta) Update(bind *pg.Bind) error + type UserStatus string + const UserStatusActive + const UserStatusDeleted + const UserStatusInactive + const UserStatusNew + const UserStatusSuspended