Documentation ¶
Index ¶
Constants ¶
View Source
const ( GotrueAudHeaderKey = "X-JWT-AUD" ClientIdPrefix = "tid_" ClientSecretPrefix = "tsec_" AppKeyUser = "app key" InvitationStatusPending = "PENDING" InvitationStatusAccepted = "ACCEPTED" InvitationStatusExpired = "EXPIRED" )
Variables ¶
View Source
var InvalidInvitationCodeErr = errors.Unauthenticated("Failed to verify invitation code")
Functions ¶
Types ¶
type CreateInvitationPayload ¶
type CreateUserPayload ¶
type CreateUserPayload struct { Email string `json:"email"` Password string `json:"password"` AppData UserAppData `json:"app_data"` }
type Provider ¶
type Provider interface { GetAccessToken(ctx context.Context, req *api.GetAccessTokenRequest) (*api.GetAccessTokenResponse, error) CreateAppKey(ctx context.Context, req *api.CreateAppKeyRequest) (*api.CreateAppKeyResponse, error) UpdateAppKey(ctx context.Context, req *api.UpdateAppKeyRequest) (*api.UpdateAppKeyResponse, error) RotateAppKey(ctx context.Context, req *api.RotateAppKeyRequest) (*api.RotateAppKeyResponse, error) DeleteAppKey(ctx context.Context, req *api.DeleteAppKeyRequest) (*api.DeleteAppKeyResponse, error) ListAppKeys(ctx context.Context, req *api.ListAppKeysRequest) (*api.ListAppKeysResponse, error) DeleteAppKeys(ctx context.Context, project string) error CreateInvitations(ctx context.Context, req *api.CreateInvitationsRequest) (*api.CreateInvitationsResponse, error) DeleteInvitations(ctx context.Context, req *api.DeleteInvitationsRequest) (*api.DeleteInvitationsResponse, error) ListInvitations(ctx context.Context, req *api.ListInvitationsRequest) (*api.ListInvitationsResponse, error) VerifyInvitation(ctx context.Context, req *api.VerifyInvitationRequest) (*api.VerifyInvitationResponse, error) }
func NewProvider ¶
func NewProvider(userstore *metadata.UserSubspace, txMgr *transaction.Manager) Provider
type UserAppData ¶
type UserAppData struct { CreatedAt int64 `json:"created_at"` CreatedBy string `json:"created_by"` UpdatedAt int64 `json:"updated_at"` UpdatedBy string `json:"updated_by"` TigrisNamespace string `json:"tigris_namespace"` Name string `json:"name"` Description string `json:"description"` Project string `json:"tigris_project"` }
type VerifyInvitationPayload ¶
Click to show internal directories.
Click to hide internal directories.