auth

package
v0.0.0-...-f2f1368 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	models.Base
	AppID                uuid.UUID
	OwnerID              uuid.UUID
	EncryptedAccessToken string // Sec: Encrypted with AUTH_SECRET_KEY
}

AccessToken represents the user's access token gotten from OAuth flow.

type AppCredentials

type AppCredentials struct {
	models.Base
	Name  string
	Code  datatypes.JSON
	AppID uuid.UUID
}

AppCredentials represents information an application needs for administrative authentication.

type ClientAccount

type ClientAccount struct {
	models.Base
	ClientID              uuid.UUID // Public-facing ID // SecureRandom.hex(32)
	EncryptedClientSecret string    // For verifying client // UUID
	Kind                  string    // Confidential or Public
	RedirectURI           string
	IsFirstParty          bool
}

ClientAccount stores information for authenticating a client.

type SocialLogin

type SocialLogin struct {
	models.Base
	AppName       string
	UserAccountID uuid.UUID
}

SocialLogin for social login information.

type UserAccount

type UserAccount struct {
	models.Base
	ResourceUserID    uuid.UUID
	EncryptedPassword string
	Username          string
	Email             string
	RefreshToken      string
	SocialLogin       SocialLogin
}

UserAccount stores information for authenticating a user.

Jump to

Keyboard shortcuts

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