Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProviderUnknown = "unknown" ProviderLocal = "local" ProviderLDAP = "ldap" ProviderForm = "form" ProviderExternal = "external" ProviderSAML = "saml" ProviderGoogle = "google" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderUserData ¶
type ProviderUserData struct { Provider string `json:"provider"` Category string `json:"category"` UID string `json:"uid"` Role *model.Role `json:"role,omitempty"` Group *string `json:"group"` Username *string `json:"username,omitempty"` Name *string `json:"name,omitempty"` Email *string `json:"email,omitempty"` Photo *string `json:"photo,omitempty"` }
func (ProviderUserData) ToUser ¶
func (p ProviderUserData) ToUser() *model.User
Click to show internal directories.
Click to hide internal directories.