Documentation
¶
Overview ¶
Package schema provides Ent schema definitions for CoreForge identity management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
APIKey holds the schema definition for the APIKey entity. API keys provide server-to-server authentication without user interaction.
func (APIKey) Annotations ¶
func (APIKey) Annotations() []schema.Annotation
Annotations of the APIKey.
type Membership ¶
Membership holds the schema definition for the Membership entity. It represents a user's membership in an organization with a specific role.
func (Membership) Annotations ¶
func (Membership) Annotations() []schema.Annotation
Annotations of the Membership.
type OAuthAccount ¶
OAuthAccount holds the schema definition for the OAuthAccount entity. It stores OAuth provider connections for users, supporting multiple providers per user.
func (OAuthAccount) Annotations ¶
func (OAuthAccount) Annotations() []schema.Annotation
Annotations of the OAuthAccount.
func (OAuthAccount) Indexes ¶
func (OAuthAccount) Indexes() []ent.Index
Indexes of the OAuthAccount.
type OAuthApp ¶
OAuthApp holds the schema definition for OAuth 2.0 applications/clients.
func (OAuthApp) Annotations ¶
func (OAuthApp) Annotations() []schema.Annotation
Annotations of the OAuthApp.
type OAuthAppSecret ¶
OAuthAppSecret holds client secrets for OAuth apps. Multiple secrets can exist for rotation purposes.
func (OAuthAppSecret) Annotations ¶
func (OAuthAppSecret) Annotations() []schema.Annotation
Annotations of the OAuthAppSecret.
func (OAuthAppSecret) Fields ¶
func (OAuthAppSecret) Fields() []ent.Field
Fields of the OAuthAppSecret.
func (OAuthAppSecret) Indexes ¶
func (OAuthAppSecret) Indexes() []ent.Index
Indexes of the OAuthAppSecret.
type OAuthAuthCode ¶
OAuthAuthCode holds OAuth 2.0 authorization codes.
func (OAuthAuthCode) Annotations ¶
func (OAuthAuthCode) Annotations() []schema.Annotation
Annotations of the OAuthAuthCode.
func (OAuthAuthCode) Fields ¶
func (OAuthAuthCode) Fields() []ent.Field
Fields of the OAuthAuthCode.
func (OAuthAuthCode) Indexes ¶
func (OAuthAuthCode) Indexes() []ent.Index
Indexes of the OAuthAuthCode.
type OAuthConsent ¶
OAuthConsent tracks user consent for OAuth apps. First-party apps skip consent; third-party apps require explicit approval.
func (OAuthConsent) Annotations ¶
func (OAuthConsent) Annotations() []schema.Annotation
Annotations of the OAuthConsent.
func (OAuthConsent) Indexes ¶
func (OAuthConsent) Indexes() []ent.Index
Indexes of the OAuthConsent.
type OAuthToken ¶
OAuthToken holds OAuth 2.0 access and refresh tokens.
func (OAuthToken) Annotations ¶
func (OAuthToken) Annotations() []schema.Annotation
Annotations of the OAuthToken.
type Organization ¶
Organization holds the schema definition for the Organization entity.
func (Organization) Annotations ¶
func (Organization) Annotations() []schema.Annotation
Annotations of the Organization.
func (Organization) Indexes ¶
func (Organization) Indexes() []ent.Index
Indexes of the Organization.
type RefreshToken ¶
RefreshToken holds the schema definition for the RefreshToken entity. It tracks JWT refresh tokens for token rotation and revocation.
func (RefreshToken) Annotations ¶
func (RefreshToken) Annotations() []schema.Annotation
Annotations of the RefreshToken.
func (RefreshToken) Indexes ¶
func (RefreshToken) Indexes() []ent.Index
Indexes of the RefreshToken.
type ServiceAccount ¶
ServiceAccount represents a non-human identity for server-to-server OAuth. Used with JWT Bearer grant (RFC 7523) for machine-to-machine authentication.
func (ServiceAccount) Annotations ¶
func (ServiceAccount) Annotations() []schema.Annotation
Annotations of the ServiceAccount.
func (ServiceAccount) Fields ¶
func (ServiceAccount) Fields() []ent.Field
Fields of the ServiceAccount.
func (ServiceAccount) Indexes ¶
func (ServiceAccount) Indexes() []ent.Index
Indexes of the ServiceAccount.
type ServiceAccountKeyPair ¶
ServiceAccountKeyPair holds RSA/EC key pairs for JWT Bearer authentication. Multiple keys can exist for rotation purposes.
func (ServiceAccountKeyPair) Annotations ¶
func (ServiceAccountKeyPair) Annotations() []schema.Annotation
Annotations of the ServiceAccountKeyPair.
func (ServiceAccountKeyPair) Edges ¶
func (ServiceAccountKeyPair) Edges() []ent.Edge
Edges of the ServiceAccountKeyPair.
func (ServiceAccountKeyPair) Fields ¶
func (ServiceAccountKeyPair) Fields() []ent.Field
Fields of the ServiceAccountKeyPair.
func (ServiceAccountKeyPair) Indexes ¶
func (ServiceAccountKeyPair) Indexes() []ent.Index
Indexes of the ServiceAccountKeyPair.
type TimestampMixin ¶
TimestampMixin provides created_at and updated_at timestamp fields.
func (TimestampMixin) Fields ¶
func (TimestampMixin) Fields() []ent.Field
Fields returns the timestamp fields.