Documentation ¶
Index ¶
- func AddAuthTokenCookie(ctx web.Context, token string)
- func AddAuthUserCookie(ctx web.Context, user *models.User)
- func GetOAuthBaseURL(ctx web.Context) string
- func GetSignUpAuthCookie(ctx web.Context) string
- func ProcessImageUpload(c web.Context, img *models.ImageUpload, preffix string) error
- func ProcessMultiImageUpload(c web.Context, imgs []*models.ImageUpload, preffix string) error
- func SetSignUpAuthCookie(ctx web.Context, user *models.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthTokenCookie ¶
AddAuthTokenCookie adds given token to a cookie
func AddAuthUserCookie ¶
AddAuthUserCookie generates Auth Token and adds a cookie
func GetOAuthBaseURL ¶
GetOAuthBaseURL returns the OAuth base URL used for host-wide OAuth authentication For Single Tenant HostMode, BaseURL is the current BaseURL For Multi Tenant HostMode, BaseURL is //login.{HOST_DOMAIN}
func GetSignUpAuthCookie ¶
GetSignUpAuthCookie returns the temporary temporary domain-wide Auth Token and removes it
func ProcessImageUpload ¶ added in v0.18.0
ProcessImageUpload uploads image to blob (if it's a new one)
func ProcessMultiImageUpload ¶ added in v0.18.0
ProcessMultiImageUpload uploads multiple image to blob (if it's a new one)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.