Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviderIconBase64 ¶
func RegisterSocialUser ¶
func RegisterSocialUser(dao *dao.Dao, u SocialUser) (entity.AuthIdentity, error)
Types ¶
type AuthProviderInfo ¶
type AuthProviderInfo struct {
Name string `json:"name" validate:"required"`
Label string `json:"label" validate:"required"`
Path string `json:"path" validate:"optional"`
Icon string `json:"icon" validate:"required"`
}
func GetProviderInfo ¶
func GetProviderInfo(conf *config.Config, providers []goth.Provider) []AuthProviderInfo
type SocialUser ¶
func GetSocialUser ¶
func GetSocialUser(u goth.User) SocialUser
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
This package is adapted from the `github.com/markbates/goth/gothic` to work with the Fiber web framework.
|
This package is adapted from the `github.com/markbates/goth/gothic` to work with the Fiber web framework. |
Click to show internal directories.
Click to hide internal directories.