Documentation
¶
Overview ¶
Re-exports of the public types, constants, sentinel errors, and helper functions implemented in internal/authcore. This is the public alias layer: when authcore's exported surface changes, mirror the intended-public symbols here. The Service facade itself lives in facade.go / facade_methods.go.
Package core is the public, embedder-facing API of AuthKit.
The full service implementation lives in internal/authcore (driven by the authkit/http transport). core re-exports the public data types, config, constants, sentinel errors, and helper functions (see aliases.go), and exposes a deliberately small Service facade: only the methods an embedding application needs to provision, manage, mint, and query. Auth-flow plumbing that exists solely to serve the HTTP handlers is intentionally NOT on this facade — it stays internal so the v1 contract stays small and stable.
Curated embedder-facing methods of the public core.Service facade. Each one delegates to the internal engine (s.impl, *authcore.Service). Driven by real consumer usage, kept minimal (see SEMVER.md, #126/#130).
Index ¶
- Constants
- Variables
- type APIKey
- type APIKeyMintOptions
- type APIKeyResource
- type APIKeysConfig
- type AdminListUsersResult
- type AdminRecoverUserInput
- type AdminUser
- type AdminUserListOptions
- type AdminUserSort
- type AdminUserStatus
- type AuthEventLogReader
- type AuthEventLogger
- type AuthSessionEvent
- type BatchEntitlementsProvider
- type BootstrapManifest
- type BootstrapManifestGlobalRole
- type BootstrapManifestResult
- type BootstrapManifestUser
- type BootstrapReconcileOptions
- type BootstrapUserPassword
- type Config
- type CreatePermissionGroupRequest
- type CustomJWTMintOptions
- type CustomRoleResolver
- type DelegatedAccessParams
- type EmailSender
- type EntitlementFilterProvider
- type EntitlementsProvider
- type EphemeralMode
- type EphemeralStore
- type FrontendConfig
- type GeneratedRoute
- type GroupAssignment
- type GroupInvite
- type GroupMember
- type GroupSchema
- type IdentityConfig
- type ImportUserInput
- type ImportUserResult
- type ImportUserStatus
- type ImportUsersResult
- type KeysConfig
- type Keyset
- type MFAStatus
- type ManagementProfile
- type Option
- type Options
- type Passkey
- type PasskeyConfig
- type PasskeyLoginResult
- type PendingChangeKind
- type PendingRegistration
- type PermissionDef
- type PermissionGroupStore
- type PersonaDef
- type PreferredLanguage
- type RBACConfig
- type RegistrationConfig
- type RegistrationMode
- type RegistrationVerificationPolicy
- type RemoteAppAttributeDef
- type RemoteAppKey
- type RemoteApplication
- type RemoteApplicationAccessParams
- type RemovedMFARoleAssignment
- type ResolvedAPIKey
- type RoleDef
- type SMSHealthChecker
- type SMSSender
- type Service
- func (s *Service) AdminCountUsers(ctx context.Context, opts AdminUserListOptions) (int64, error)
- func (s *Service) AdminGetUser(ctx context.Context, id string) (*AdminUser, error)
- func (s *Service) AdminListUserSessions(ctx context.Context, userID string) ([]Session, error)
- func (s *Service) AdminListUsers(ctx context.Context, opts AdminUserListOptions) (*AdminListUsersResult, error)
- func (s *Service) AdminRevokeUserSessions(ctx context.Context, userID string) error
- func (s *Service) AdminSetPassword(ctx context.Context, userID, new string) error
- func (s *Service) AssignGroupRole(ctx context.Context, ...) error
- func (s *Service) AssignRoleBySlug(ctx context.Context, userID, slug string) error
- func (s *Service) BanUser(ctx context.Context, userID string, reason *string, until *time.Time, ...) error
- func (s *Service) Can(ctx context.Context, ...) (bool, error)
- func (s *Service) ChangePassword(ctx context.Context, userID, current, new string, keepSessionID *string) error
- func (s *Service) CheckSMSHealth(ctx context.Context) error
- func (s *Service) CleanupExpiredAuthState(ctx context.Context) error
- func (s *Service) CreatePermissionGroup(ctx context.Context, req CreatePermissionGroupRequest) (string, error)
- func (s *Service) CreateUser(ctx context.Context, email, username string) (*User, error)
- func (s *Service) DeleteRemoteApplication(ctx context.Context, issuer string) error
- func (s *Service) EnsureRootGroup(ctx context.Context) (string, error)
- func (s *Service) EntitlementsProvider() EntitlementsProvider
- func (s *Service) EphemeralMode() EphemeralMode
- func (s *Service) ExchangeRefreshToken(ctx context.Context, refreshToken string, ua string, ip net.IP) (string, time.Time, string, error)
- func (s *Service) GetEmailByUserID(ctx context.Context, id string) (string, error)
- func (s *Service) GetProviderUsername(ctx context.Context, userID, provider string) (string, error)
- func (s *Service) GetRemoteApplication(ctx context.Context, issuer string) (*RemoteApplication, error)
- func (s *Service) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (s *Service) GetUserByPhone(ctx context.Context, phone string) (*User, error)
- func (s *Service) GetUserBySolanaAddress(ctx context.Context, address string) (*User, error)
- func (s *Service) GetUserByUsername(ctx context.Context, username string) (*User, error)
- func (s *Service) GetUserMetadata(ctx context.Context, userID string) (map[string]any, error)
- func (s *Service) HardDeleteUser(ctx context.Context, userID string) error
- func (s *Service) HasEmailSender() bool
- func (s *Service) HasSMSSender() bool
- func (s *Service) ImportUsers(ctx context.Context, inputs []ImportUserInput) (ImportUsersResult, error)
- func (s *Service) IsUserAllowed(ctx context.Context, userID string) (bool, error)
- func (s *Service) IssueAccessToken(ctx context.Context, userID, email string, extra map[string]any) (string, time.Time, error)
- func (s *Service) JWKS() jwtkit.JWKS
- func (s *Service) Keyfunc() func(token *jwt.Token) (any, error)
- func (s *Service) LinkProvider(ctx context.Context, userID, provider, subject string, email *string) error
- func (s *Service) LinkProviderByIssuer(ctx context.Context, userID, issuer, providerSlug, subject string, ...) error
- func (s *Service) ListAPIKeys(ctx context.Context, persona, resourceSlug string) ([]APIKey, error)
- func (s *Service) ListEntitlements(ctx context.Context, userID string) []string
- func (s *Service) ListGroupMembers(ctx context.Context, persona, resourceSlug string) ([]GroupMember, error)
- func (s *Service) ListRemoteApplications(ctx context.Context, activeOnly bool) ([]RemoteApplication, error)
- func (s *Service) ListRoleSlugsByUser(ctx context.Context, userID string) []string
- func (s *Service) ListSubjectGroups(ctx context.Context, subjectID, subjectKind string) ([]SubjectGroupMembership, error)
- func (s *Service) ListUserSessions(ctx context.Context, userID string) ([]Session, error)
- func (s *Service) ListUsersDeletedBefore(ctx context.Context, cutoff time.Time, limit int) ([]string, error)
- func (s *Service) MintAPIKey(ctx context.Context, persona, resourceSlug, name, role, createdBy string, ...) (APIKey, string, error)
- func (s *Service) MintAPIKeyWithOptions(ctx context.Context, persona, resourceSlug string, opts APIKeyMintOptions) (APIKey, string, error)
- func (s *Service) MintCustomJWT(ctx context.Context, opts CustomJWTMintOptions) (string, error)
- func (s *Service) MintDelegatedAccessToken(ctx context.Context, p DelegatedAccessParams) (string, error)
- func (s *Service) MintRemoteApplicationAccessToken(ctx context.Context, p RemoteApplicationAccessParams) (string, error)
- func (s *Service) MintServiceJWT(ctx context.Context, opts ServiceJWTMintOptions) (string, ServiceJWTClaims, error)
- func (s *Service) Options() Options
- func (s *Service) PatchUserMetadata(ctx context.Context, userID string, patch map[string]any) error
- func (s *Service) Postgres() *pgxpool.Pool
- func (s *Service) PublicKeysByKID() map[string]crypto.PublicKey
- func (s *Service) ReconcileBootstrapManifest(ctx context.Context, manifest BootstrapManifest, ...) (BootstrapManifestResult, error)
- func (s *Service) RemoveRoleBySlug(ctx context.Context, userID, slug string) error
- func (s *Service) ResolveAPIKey(ctx context.Context, keyID, secret string) (string, []string, error)
- func (s *Service) ResolveAPIKeyWithResources(ctx context.Context, keyID, secret string) (ResolvedAPIKey, error)
- func (s *Service) ResolveGroupIDForSlug(ctx context.Context, persona, resourceSlug string) (string, error)
- func (s *Service) ResolveRemoteAppAttributeDef(ctx context.Context, appID, key string, version int32) (*RemoteAppAttributeDef, error)
- func (s *Service) ResolveRemoteApplicationAuthority(ctx context.Context, appID string) ([]string, error)
- func (s *Service) RestoreUser(ctx context.Context, id string) error
- func (s *Service) RevokeAPIKey(ctx context.Context, persona, resourceSlug, tokenID string) (bool, error)
- func (s *Service) RevokeAllSessions(ctx context.Context, userID string, keepSessionID *string) error
- func (s *Service) SMSAvailable() bool
- func (s *Service) Schema() string
- func (s *Service) SeedPermissionGroupContainment(ctx context.Context) error
- func (s *Service) SetEmailVerified(ctx context.Context, id string, v bool) error
- func (s *Service) SetEntitlementsProvider(p EntitlementsProvider)
- func (s *Service) SoftDeleteUser(ctx context.Context, id string) error
- func (s *Service) TimeUntilUsernameRenameAvailable(ctx context.Context, userID string, now time.Time) (int64, error)
- func (s *Service) UnbanUser(ctx context.Context, userID string) error
- func (s *Service) UnlinkProvider(ctx context.Context, userID, provider string) error
- func (s *Service) UpdateBiography(ctx context.Context, id string, bio *string) error
- func (s *Service) UpdateEmail(ctx context.Context, id, email string) error
- func (s *Service) UpdateImportedUser(ctx context.Context, userID string, input ImportUserInput) (*User, error)
- func (s *Service) UpdateUsername(ctx context.Context, id, username string) error
- func (s *Service) UpsertPasswordHash(ctx context.Context, userID, hash, algo string, params []byte) error
- func (s *Service) UpsertRemoteApplication(ctx context.Context, in RemoteApplication) (*RemoteApplication, error)
- func (s *Service) UpsertRoleBySlug(ctx context.Context, name, slug string, description *string) error
- func (s *Service) ValidateVerificationConfiguration() error
- func (s *Service) VerifyUserPassword(ctx context.Context, userID, pass string) bool
- type ServiceJWTClaims
- type ServiceJWTMintOptions
- type Session
- type SessionEventType
- type SessionFreshness
- type SessionRevokeReason
- type SolanaConfig
- type SolanaLinkedAccount
- type SolanaSNSResolver
- type SubjectGroupMembership
- type TokenConfig
- type TwoFactorConfig
- type TwoFactorFactor
- type TwoFactorSettings
- type User
- type ValidationError
- type VerificationMessage
Constants ¶
const AdminUserSortCreatedAt = authcore.AdminUserSortCreatedAt
Re-exported constants.
const AdminUserSortEmail = authcore.AdminUserSortEmail
const AdminUserSortLastLogin = authcore.AdminUserSortLastLogin
const AdminUserSortUsername = authcore.AdminUserSortUsername
const AdminUserStatusActive = authcore.AdminUserStatusActive
const AdminUserStatusAny = authcore.AdminUserStatusAny
const AdminUserStatusBanned = authcore.AdminUserStatusBanned
const AdminUserStatusDeleted = authcore.AdminUserStatusDeleted
const AssuranceLevelMFA = authcore.AssuranceLevelMFA
const AssuranceLevelPassword = authcore.AssuranceLevelPassword
const DefaultBootstrapManifestPath = authcore.DefaultBootstrapManifestPath
const DefaultServiceJWTLifetime = authcore.DefaultServiceJWTLifetime
const DelegatedAccessTokenType = authcore.DelegatedAccessTokenType
const EphemeralMemory = authcore.EphemeralMemory
const EphemeralRedis = authcore.EphemeralRedis
const ErrCodeInvalidEmail = authcore.ErrCodeInvalidEmail
const ErrCodeInvalidPhoneNumber = authcore.ErrCodeInvalidPhoneNumber
const ErrCodeOwnerSlugTaken = authcore.ErrCodeOwnerSlugTaken
const ErrCodePasswordTooShort = authcore.ErrCodePasswordTooShort
const ErrCodeRenameRateLimited = authcore.ErrCodeRenameRateLimited
const ErrCodeUsernameCannotContainAt = authcore.ErrCodeUsernameCannotContainAt
const ErrCodeUsernameCannotStartWithPlus = authcore.ErrCodeUsernameCannotStartWithPlus
const ErrCodeUsernameInvalidCharacters = authcore.ErrCodeUsernameInvalidCharacters
const ErrCodeUsernameMustStartWithLetter = authcore.ErrCodeUsernameMustStartWithLetter
const ErrCodeUsernameNotAllowed = authcore.ErrCodeUsernameNotAllowed
const ErrCodeUsernameTooLong = authcore.ErrCodeUsernameTooLong
const ErrCodeUsernameTooShort = authcore.ErrCodeUsernameTooShort
const GroupInviteStatusAccepted = authcore.GroupInviteStatusAccepted
const GroupInviteStatusDeclined = authcore.GroupInviteStatusDeclined
const GroupInviteStatusExpired = authcore.GroupInviteStatusExpired
const GroupInviteStatusPending = authcore.GroupInviteStatusPending
const GroupInviteStatusRevoked = authcore.GroupInviteStatusRevoked
const HashAlgoLegacyResetRequired = authcore.HashAlgoLegacyResetRequired
const ImportStatusInserted = authcore.ImportStatusInserted
const ImportStatusRejected = authcore.ImportStatusRejected
const ImportStatusSkipped = authcore.ImportStatusSkipped
const KindChangeEmail = authcore.KindChangeEmail
const KindChangePhone = authcore.KindChangePhone
const KindRegisterEmail = authcore.KindRegisterEmail
const KindRegisterPhone = authcore.KindRegisterPhone
const MaxCustomJWTLifetime = authcore.MaxCustomJWTLifetime
const MemberRoleName = authcore.MemberRoleName
const OwnerRoleName = authcore.OwnerRoleName
const PermRootAPIKeysRevoke = authcore.PermRootAPIKeysRevoke
const PermRootGroupsCreate = authcore.PermRootGroupsCreate
const PermRootGroupsDelete = authcore.PermRootGroupsDelete
const PermRootRemoteAppsManage = authcore.PermRootRemoteAppsManage
const PermRootRolesManage = authcore.PermRootRolesManage
const PermRootSessionsRevoke = authcore.PermRootSessionsRevoke
const PermRootUsersBan = authcore.PermRootUsersBan
const PermRootUsersDelete = authcore.PermRootUsersDelete
const PermRootUsersRead = authcore.PermRootUsersRead
const PermRootUsersSuspend = authcore.PermRootUsersSuspend
const PermRootUsersUpdate = authcore.PermRootUsersUpdate
const RegistrationModeAdminBootstrapOnly = authcore.RegistrationModeAdminBootstrapOnly
const RegistrationModeAdminOnly = authcore.RegistrationModeAdminOnly
const RegistrationModeClosed = authcore.RegistrationModeClosed
const RegistrationModeInviteOnly = authcore.RegistrationModeInviteOnly
const RegistrationModeManifestOnly = authcore.RegistrationModeManifestOnly
const RegistrationModeOpen = authcore.RegistrationModeOpen
const RegistrationVerificationNone = authcore.RegistrationVerificationNone
const RegistrationVerificationOptional = authcore.RegistrationVerificationOptional
const RegistrationVerificationRequired = authcore.RegistrationVerificationRequired
const RemoteAppModeJWKS = authcore.RemoteAppModeJWKS
const RemoteAppModeStatic = authcore.RemoteAppModeStatic
const RemoteApplicationAccessTokenType = authcore.RemoteApplicationAccessTokenType
const RootPersona = authcore.RootPersona
const SensitiveActionFreshAuthWindow = authcore.SensitiveActionFreshAuthWindow
const ServiceJWTTokenUse = authcore.ServiceJWTTokenUse
const ServiceJWTType = authcore.ServiceJWTType
const SessionEventCreated = authcore.SessionEventCreated
const SessionEventFailed = authcore.SessionEventFailed
const SessionEventPasswordChange = authcore.SessionEventPasswordChange
const SessionEventPasswordRecovery = authcore.SessionEventPasswordRecovery
const SessionEventRevoked = authcore.SessionEventRevoked
const SessionRevokeReasonAdminRevoke = authcore.SessionRevokeReasonAdminRevoke
const SessionRevokeReasonAdminRevokeAll = authcore.SessionRevokeReasonAdminRevokeAll
const SessionRevokeReasonAdminSetPassword = authcore.SessionRevokeReasonAdminSetPassword
const SessionRevokeReasonBanned = authcore.SessionRevokeReasonBanned
const SessionRevokeReasonEvicted = authcore.SessionRevokeReasonEvicted
const SessionRevokeReasonLogout = authcore.SessionRevokeReasonLogout
const SessionRevokeReasonPasswordChange = authcore.SessionRevokeReasonPasswordChange
const SessionRevokeReasonRefreshReuseDetected = authcore.SessionRevokeReasonRefreshReuseDetected
const SessionRevokeReasonSoftDeleted = authcore.SessionRevokeReasonSoftDeleted
const SessionRevokeReasonUnknown = authcore.SessionRevokeReasonUnknown
const SessionRevokeReasonUserDisabled = authcore.SessionRevokeReasonUserDisabled
const SessionRevokeReasonUserRevoke = authcore.SessionRevokeReasonUserRevoke
const SessionRevokeReasonUserRevokeAll = authcore.SessionRevokeReasonUserRevokeAll
const SolanaProviderSlug = authcore.SolanaProviderSlug
const SolanaSNSStatusDisabled = authcore.SolanaSNSStatusDisabled
const SolanaSNSStatusError = authcore.SolanaSNSStatusError
const SolanaSNSStatusNotFound = authcore.SolanaSNSStatusNotFound
const SolanaSNSStatusPending = authcore.SolanaSNSStatusPending
const SolanaSNSStatusResolved = authcore.SolanaSNSStatusResolved
const SolanaSNSStatusStale = authcore.SolanaSNSStatusStale
const SubjectKindRemoteApp = authcore.SubjectKindRemoteApp
const SubjectKindUser = authcore.SubjectKindUser
const SuperAdminRoleName = authcore.SuperAdminRoleName
Variables ¶
var APIKeyMarker = authcore.APIKeyMarker
Re-exported variables, sentinel errors, and functions.
var BuildSchema = authcore.BuildSchema
var ErrAccessTokenExpired = authcore.ErrAccessTokenExpired
var ErrAccessTokenRevoked = authcore.ErrAccessTokenRevoked
var ErrAttributeDefNotFound = authcore.ErrAttributeDefNotFound
var ErrCannotRemoveLastAdminRole = authcore.ErrCannotRemoveLastAdminRole
var ErrCustomClaimsReserved = authcore.ErrCustomClaimsReserved
var ErrEmailAlreadyVerified = authcore.ErrEmailAlreadyVerified
var ErrEmailDeliveryFailed = authcore.ErrEmailDeliveryFailed
var ErrEmailInUse = authcore.ErrEmailInUse
var ErrEmptyCustomClaims = authcore.ErrEmptyCustomClaims
var ErrGroupNotFound = authcore.ErrGroupNotFound
var ErrInvalidAccessToken = authcore.ErrInvalidAccessToken
var ErrInvalidAttributeDef = authcore.ErrInvalidAttributeDef
var ErrInvalidBootstrapManifest = authcore.ErrInvalidBootstrapManifest
var ErrInvalidRemoteApplication = authcore.ErrInvalidRemoteApplication
var ErrInvalidServiceJWT = authcore.ErrInvalidServiceJWT
var ErrInviteNotFound = authcore.ErrInviteNotFound
var ErrInviteNotPending = authcore.ErrInviteNotPending
var ErrMissingSigner = authcore.ErrMissingSigner
var ErrNotGroupMember = authcore.ErrNotGroupMember
var ErrOwnerSlugTaken = authcore.ErrOwnerSlugTaken
var ErrPasskeyCloneDetected = authcore.ErrPasskeyCloneDetected
var ErrPasskeyNotFound = authcore.ErrPasskeyNotFound
var ErrPasskeyUserVerificationRequired = authcore.ErrPasskeyUserVerificationRequired
var ErrPasswordResetRequired = authcore.ErrPasswordResetRequired
var ErrPendingRegistrationNotFound = authcore.ErrPendingRegistrationNotFound
var ErrPhoneAlreadyVerified = authcore.ErrPhoneAlreadyVerified
var ErrPhoneInUse = authcore.ErrPhoneInUse
var ErrReauthenticationRequired = authcore.ErrReauthenticationRequired
var ErrRegistrationDisabled = authcore.ErrRegistrationDisabled
var ErrRemoteApplicationNotFound = authcore.ErrRemoteApplicationNotFound
var ErrRenameRateLimited = authcore.ErrRenameRateLimited
var ErrReservedIssuer = authcore.ErrReservedIssuer
var ErrReservedRoleSlug = authcore.ErrReservedRoleSlug
var ErrSMSDeliveryFailed = authcore.ErrSMSDeliveryFailed
var ErrTooManyCustomClaims = authcore.ErrTooManyCustomClaims
var ErrTwoFAEnrollmentRequired = authcore.ErrTwoFAEnrollmentRequired
var ErrUserBanned = authcore.ErrUserBanned
var ErrUserNotFound = authcore.ErrUserNotFound
var ErrUserRoleNotFound = authcore.ErrUserRoleNotFound
var ErrVerificationLinkExpired = authcore.ErrVerificationLinkExpired
var FormatAPIKey = authcore.FormatAPIKey
var HasAPIKeyPrefix = authcore.HasAPIKeyPrefix
var IntrinsicRootPermissions = authcore.IntrinsicRootPermissions
var IntrinsicRootPersona = authcore.IntrinsicRootPersona
var IsDevEnvironment = authcore.IsDevEnvironment
var LoadBootstrapManifestFile = authcore.LoadBootstrapManifestFile
var MintDelegatedAccessToken = authcore.MintDelegatedAccessToken
var MintRemoteApplicationAccessToken = authcore.MintRemoteApplicationAccessToken
var MintServiceJWT = authcore.MintServiceJWT
var NewGroupSchema = authcore.NewGroupSchema
var NewPermissionGroupStore = authcore.NewPermissionGroupStore
var NormalizeAllowedOrigin = authcore.NormalizeAllowedOrigin
var NormalizeAllowedOrigins = authcore.NormalizeAllowedOrigins
var NormalizeEmail = authcore.NormalizeEmail
var NormalizePhone = authcore.NormalizePhone
var NormalizePreferredLanguage = authcore.NormalizePreferredLanguage
var NormalizeRemoteAppTrustSource = authcore.NormalizeRemoteAppTrustSource
var OriginAllowed = authcore.OriginAllowed
var OwnerGrant = authcore.OwnerGrant
var ParseAPIKey = authcore.ParseAPIKey
var ParseBootstrapManifestYAML = authcore.ParseBootstrapManifestYAML
var PermAPIKeysManage = authcore.PermAPIKeysManage
var PermAPIKeysRead = authcore.PermAPIKeysRead
var PermInvitesManage = authcore.PermInvitesManage
var PermInvitesRead = authcore.PermInvitesRead
var PermMembersManage = authcore.PermMembersManage
var PermMembersRead = authcore.PermMembersRead
var PermRemoteAppsManage = authcore.PermRemoteAppsManage
var PermRemoteAppsRead = authcore.PermRemoteAppsRead
var PermRolesManage = authcore.PermRolesManage
var PermRolesRead = authcore.PermRolesRead
var PermissionPersona = authcore.PermissionPersona
var ValidateEmail = authcore.ValidateEmail
var ValidateGrantPattern = authcore.ValidateGrantPattern
var ValidatePassword = authcore.ValidatePassword
var ValidatePermission = authcore.ValidatePermission
var ValidatePhone = authcore.ValidatePhone
var ValidateUsername = authcore.ValidateUsername
var ValidationErrorCode = authcore.ValidationErrorCode
var WithAuthLogger = authcore.WithAuthLogger
var WithDBTXWrapper = authcore.WithDBTXWrapper
var WithEmailSender = authcore.WithEmailSender
var WithEntitlements = authcore.WithEntitlements
var WithEphemeralStore = authcore.WithEphemeralStore
var WithPostgres = authcore.WithPostgres
var WithSMSSender = authcore.WithSMSSender
var WithSessionRevokeReason = authcore.WithSessionRevokeReason
var WithSolanaSNSResolver = authcore.WithSolanaSNSResolver
Functions ¶
This section is empty.
Types ¶
type APIKeyMintOptions ¶ added in v0.41.0
type APIKeyMintOptions = authcore.APIKeyMintOptions
type APIKeyResource ¶ added in v0.41.0
type APIKeyResource = authcore.APIKeyResource
type APIKeysConfig ¶ added in v0.47.0
type APIKeysConfig = authcore.APIKeysConfig
type AdminListUsersResult ¶
type AdminListUsersResult = authcore.AdminListUsersResult
type AdminRecoverUserInput ¶ added in v0.54.0
type AdminRecoverUserInput = authcore.AdminRecoverUserInput
type AdminUserListOptions ¶ added in v0.40.0
type AdminUserListOptions = authcore.AdminUserListOptions
type AdminUserSort ¶ added in v0.40.0
type AdminUserSort = authcore.AdminUserSort
type AdminUserStatus ¶ added in v0.40.0
type AdminUserStatus = authcore.AdminUserStatus
type AuthEventLogReader ¶ added in v0.4.2
type AuthEventLogReader = authcore.AuthEventLogReader
type AuthEventLogger ¶
type AuthEventLogger = authcore.AuthEventLogger
type AuthSessionEvent ¶
type AuthSessionEvent = authcore.AuthSessionEvent
type BatchEntitlementsProvider ¶ added in v0.21.0
type BatchEntitlementsProvider = authcore.BatchEntitlementsProvider
type BootstrapManifest ¶ added in v0.37.0
type BootstrapManifest = authcore.BootstrapManifest
type BootstrapManifestGlobalRole ¶ added in v0.37.0
type BootstrapManifestGlobalRole = authcore.BootstrapManifestGlobalRole
type BootstrapManifestResult ¶ added in v0.37.0
type BootstrapManifestResult = authcore.BootstrapManifestResult
type BootstrapManifestUser ¶ added in v0.37.0
type BootstrapManifestUser = authcore.BootstrapManifestUser
type BootstrapReconcileOptions ¶ added in v0.37.0
type BootstrapReconcileOptions = authcore.BootstrapReconcileOptions
type BootstrapUserPassword ¶ added in v0.37.0
type BootstrapUserPassword = authcore.BootstrapUserPassword
type CreatePermissionGroupRequest ¶ added in v0.49.0
type CreatePermissionGroupRequest = authcore.CreatePermissionGroupRequest
type CustomJWTMintOptions ¶ added in v0.26.0
type CustomJWTMintOptions = authcore.CustomJWTMintOptions
type CustomRoleResolver ¶ added in v0.49.0
type CustomRoleResolver = authcore.CustomRoleResolver
type DelegatedAccessParams ¶ added in v0.26.0
type DelegatedAccessParams = authcore.DelegatedAccessParams
type EmailSender ¶
type EmailSender = authcore.EmailSender
type EntitlementFilterProvider ¶ added in v0.40.0
type EntitlementFilterProvider = authcore.EntitlementFilterProvider
type EntitlementsProvider ¶
type EntitlementsProvider = authcore.EntitlementsProvider
type EphemeralMode ¶
type EphemeralMode = authcore.EphemeralMode
type EphemeralStore ¶
type EphemeralStore = authcore.EphemeralStore
type FrontendConfig ¶ added in v0.47.0
type FrontendConfig = authcore.FrontendConfig
type GeneratedRoute ¶ added in v0.49.0
type GeneratedRoute = authcore.GeneratedRoute
type GroupAssignment ¶ added in v0.49.0
type GroupAssignment = authcore.GroupAssignment
type GroupInvite ¶ added in v0.50.0
type GroupInvite = authcore.GroupInvite
type GroupMember ¶ added in v0.49.0
type GroupMember = authcore.GroupMember
type GroupSchema ¶ added in v0.49.0
type GroupSchema = authcore.GroupSchema
type IdentityConfig ¶ added in v0.47.0
type IdentityConfig = authcore.IdentityConfig
type ImportUserInput ¶ added in v0.9.0
type ImportUserInput = authcore.ImportUserInput
type ImportUserResult ¶ added in v0.56.0
type ImportUserResult = authcore.ImportUserResult
type ImportUserStatus ¶ added in v0.56.0
type ImportUserStatus = authcore.ImportUserStatus
type ImportUsersResult ¶ added in v0.56.0
type ImportUsersResult = authcore.ImportUsersResult
Re-exported types. #130 bulk-import result types + status constants (hand-added; the generator also picks these up on a full regen).
type KeysConfig ¶ added in v0.47.0
type KeysConfig = authcore.KeysConfig
type ManagementProfile ¶ added in v0.49.0
type ManagementProfile = authcore.ManagementProfile
type PasskeyConfig ¶ added in v0.56.0
type PasskeyConfig = authcore.PasskeyConfig
type PasskeyLoginResult ¶ added in v0.56.0
type PasskeyLoginResult = authcore.PasskeyLoginResult
type PendingChangeKind ¶ added in v0.15.5
type PendingChangeKind = authcore.PendingChangeKind
type PendingRegistration ¶
type PendingRegistration = authcore.PendingRegistration
type PermissionDef ¶ added in v0.11.3
type PermissionDef = authcore.PermissionDef
type PermissionGroupStore ¶ added in v0.49.0
type PermissionGroupStore = authcore.PermissionGroupStore
type PersonaDef ¶ added in v0.56.0
type PersonaDef = authcore.PersonaDef
type PreferredLanguage ¶ added in v0.54.0
type PreferredLanguage = authcore.PreferredLanguage
type RBACConfig ¶ added in v0.47.0
type RBACConfig = authcore.RBACConfig
type RegistrationConfig ¶ added in v0.47.0
type RegistrationConfig = authcore.RegistrationConfig
type RegistrationMode ¶ added in v0.12.4
type RegistrationMode = authcore.RegistrationMode
type RegistrationVerificationPolicy ¶ added in v0.5.0
type RegistrationVerificationPolicy = authcore.RegistrationVerificationPolicy
type RemoteAppAttributeDef ¶ added in v0.27.0
type RemoteAppAttributeDef = authcore.RemoteAppAttributeDef
type RemoteAppKey ¶ added in v0.27.0
type RemoteAppKey = authcore.RemoteAppKey
type RemoteApplication ¶ added in v0.27.0
type RemoteApplication = authcore.RemoteApplication
type RemoteApplicationAccessParams ¶ added in v0.28.0
type RemoteApplicationAccessParams = authcore.RemoteApplicationAccessParams
type RemovedMFARoleAssignment ¶ added in v0.56.0
type RemovedMFARoleAssignment = authcore.RemovedMFARoleAssignment
type ResolvedAPIKey ¶ added in v0.41.0
type ResolvedAPIKey = authcore.ResolvedAPIKey
type SMSHealthChecker ¶ added in v0.15.4
type SMSHealthChecker = authcore.SMSHealthChecker
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the public AuthKit service facade. It wraps the internal engine and exposes the curated embedder API (facade_methods.go). Construct it with NewFromConfig (recommended) or NewService.
func NewFromConfig ¶
NewFromConfig builds a Service from host configuration. Postgres is required (positional); optional dependencies are functional options.
func NewService ¶
NewService builds a Service from already-resolved Options and Keyset.
func Wrap ¶ added in v0.56.0
Wrap adapts an internal engine into the public facade. It is used by the authkit/http transport to back svc.Core(); the parameter type lives in internal/ and cannot be named (or constructed) outside the module, so this does not expose the full engine to external callers.
func (*Service) AdminCountUsers ¶ added in v0.40.0
func (*Service) AdminGetUser ¶
func (*Service) AdminListUserSessions ¶
func (*Service) AdminListUsers ¶
func (s *Service) AdminListUsers(ctx context.Context, opts AdminUserListOptions) (*AdminListUsersResult, error)
func (*Service) AdminRevokeUserSessions ¶
func (*Service) AdminSetPassword ¶
func (*Service) AssignGroupRole ¶ added in v0.49.0
func (*Service) AssignRoleBySlug ¶
func (*Service) ChangePassword ¶
func (*Service) CheckSMSHealth ¶ added in v0.15.4
func (*Service) CleanupExpiredAuthState ¶ added in v0.9.0
func (*Service) CreatePermissionGroup ¶ added in v0.49.0
func (*Service) CreateUser ¶
func (*Service) DeleteRemoteApplication ¶ added in v0.27.0
func (*Service) EnsureRootGroup ¶ added in v0.49.0
func (*Service) EntitlementsProvider ¶
func (s *Service) EntitlementsProvider() EntitlementsProvider
func (*Service) EphemeralMode ¶
func (s *Service) EphemeralMode() EphemeralMode
func (*Service) ExchangeRefreshToken ¶
func (*Service) GetEmailByUserID ¶
func (*Service) GetProviderUsername ¶
func (*Service) GetRemoteApplication ¶ added in v0.27.0
func (*Service) GetUserByEmail ¶
func (*Service) GetUserByPhone ¶
func (*Service) GetUserBySolanaAddress ¶
func (*Service) GetUserByUsername ¶
func (*Service) GetUserMetadata ¶ added in v0.4.8
func (*Service) HardDeleteUser ¶
func (*Service) HasEmailSender ¶
func (*Service) HasSMSSender ¶
func (*Service) ImportUsers ¶ added in v0.56.0
func (s *Service) ImportUsers(ctx context.Context, inputs []ImportUserInput) (ImportUsersResult, error)
func (*Service) IsUserAllowed ¶
func (*Service) IssueAccessToken ¶
func (*Service) LinkProvider ¶
func (*Service) LinkProviderByIssuer ¶
func (*Service) ListAPIKeys ¶ added in v0.41.0
func (*Service) ListEntitlements ¶
func (*Service) ListGroupMembers ¶ added in v0.49.0
func (*Service) ListRemoteApplications ¶ added in v0.27.0
func (*Service) ListRoleSlugsByUser ¶
func (*Service) ListSubjectGroups ¶ added in v0.49.0
func (*Service) ListUserSessions ¶
func (*Service) ListUsersDeletedBefore ¶
func (*Service) MintAPIKey ¶ added in v0.41.0
func (*Service) MintAPIKeyWithOptions ¶ added in v0.41.0
func (*Service) MintCustomJWT ¶ added in v0.26.0
func (*Service) MintDelegatedAccessToken ¶ added in v0.26.0
func (*Service) MintRemoteApplicationAccessToken ¶ added in v0.28.0
func (*Service) MintServiceJWT ¶ added in v0.13.1
func (s *Service) MintServiceJWT(ctx context.Context, opts ServiceJWTMintOptions) (string, ServiceJWTClaims, error)
func (*Service) PatchUserMetadata ¶ added in v0.4.8
func (*Service) PublicKeysByKID ¶ added in v0.6.0
func (*Service) ReconcileBootstrapManifest ¶ added in v0.37.0
func (s *Service) ReconcileBootstrapManifest(ctx context.Context, manifest BootstrapManifest, opts BootstrapReconcileOptions) (BootstrapManifestResult, error)
func (*Service) RemoveRoleBySlug ¶
func (*Service) ResolveAPIKey ¶ added in v0.41.0
func (*Service) ResolveAPIKeyWithResources ¶ added in v0.41.0
func (*Service) ResolveGroupIDForSlug ¶ added in v0.56.0
func (*Service) ResolveRemoteAppAttributeDef ¶ added in v0.27.0
func (*Service) ResolveRemoteApplicationAuthority ¶ added in v0.28.0
func (*Service) RevokeAPIKey ¶ added in v0.41.0
func (*Service) RevokeAllSessions ¶
func (*Service) SMSAvailable ¶ added in v0.15.4
func (*Service) SeedPermissionGroupContainment ¶ added in v0.49.0
func (*Service) SetEmailVerified ¶
func (*Service) SetEntitlementsProvider ¶ added in v0.48.0
func (s *Service) SetEntitlementsProvider(p EntitlementsProvider)
func (*Service) SoftDeleteUser ¶
func (*Service) TimeUntilUsernameRenameAvailable ¶ added in v0.8.6
func (*Service) UnlinkProvider ¶
func (*Service) UpdateBiography ¶
func (*Service) UpdateEmail ¶
func (*Service) UpdateImportedUser ¶ added in v0.9.0
func (*Service) UpdateUsername ¶
func (*Service) UpsertPasswordHash ¶
func (*Service) UpsertRemoteApplication ¶ added in v0.27.0
func (s *Service) UpsertRemoteApplication(ctx context.Context, in RemoteApplication) (*RemoteApplication, error)
func (*Service) UpsertRoleBySlug ¶ added in v0.9.0
func (*Service) ValidateVerificationConfiguration ¶ added in v0.5.0
type ServiceJWTClaims ¶ added in v0.13.1
type ServiceJWTClaims = authcore.ServiceJWTClaims
type ServiceJWTMintOptions ¶ added in v0.13.1
type ServiceJWTMintOptions = authcore.ServiceJWTMintOptions
type SessionEventType ¶
type SessionEventType = authcore.SessionEventType
type SessionFreshness ¶ added in v0.8.3
type SessionFreshness = authcore.SessionFreshness
type SessionRevokeReason ¶
type SessionRevokeReason = authcore.SessionRevokeReason
type SolanaConfig ¶ added in v0.47.0
type SolanaConfig = authcore.SolanaConfig
type SolanaLinkedAccount ¶ added in v0.15.0
type SolanaLinkedAccount = authcore.SolanaLinkedAccount
type SolanaSNSResolver ¶ added in v0.15.0
type SolanaSNSResolver = authcore.SolanaSNSResolver
type SubjectGroupMembership ¶ added in v0.49.0
type SubjectGroupMembership = authcore.SubjectGroupMembership
type TokenConfig ¶ added in v0.47.0
type TokenConfig = authcore.TokenConfig
type TwoFactorConfig ¶ added in v0.53.0
type TwoFactorConfig = authcore.TwoFactorConfig
type TwoFactorFactor ¶ added in v0.54.0
type TwoFactorFactor = authcore.TwoFactorFactor
type TwoFactorSettings ¶
type TwoFactorSettings = authcore.TwoFactorSettings
type ValidationError ¶ added in v0.8.6
type ValidationError = authcore.ValidationError
type VerificationMessage ¶ added in v0.5.0
type VerificationMessage = authcore.VerificationMessage