auth

package
v0.0.0-...-f15f0a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForeignDevIntegrationCreds

type ForeignDevIntegrationCreds struct {
	models.Base
	Name          string    `json:"name"`
	IntegrationID uuid.UUID `json:"integration_id"`
	Specification string    `pg:"type:jsonb" json:"specification"`
}

ForeignDevIntegrationCreds holds the necessary information for the app to make successful requests to third-party integrations.

type ForeignUserAccountCreds

type ForeignUserAccountCreds struct {
	models.Base
	UserID          uuid.UUID `json:"user_id"`
	IntegrationID   uuid.UUID `json:"integration_id"`
	EncAccessToken  string    `json:"enc_access_token"`
	EncRefreshToken string    `json:"enc_refresh_token"`
}

ForeignUserAccountCreds holds the necessary information to access user's third-party resources.

type UserAccountCreds

type UserAccountCreds struct {
	models.Base
	Email        string `pg:",notnull,unique" json:"email"`
	PasswordHash string `json:"password_hash"`
}

UserAccountCreds holds the necessary information to access a user's account.

func (*UserAccountCreds) Create

func (creds *UserAccountCreds) Create(db *database.DB) error

Create creates a user account credentials.

func (*UserAccountCreds) GetByEmail

func (creds *UserAccountCreds) GetByEmail(db *database.DB) error

GetByEmail gets user account credentials by email.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL