Documentation ¶
Index ¶
Constants ¶
View Source
const ( GotrueAudHeaderKey = "X-JWT-AUD" ClientIdPrefix = "tid_" ClientSecretPrefix = "tsec_" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 }
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"` }
Click to show internal directories.
Click to hide internal directories.