types

package
v1.2.2-0...-70982f0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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