func (u *OIDCUser) GetName() string {
	return u.Name
}
Get name (only available for OIDC user).
package models
const OIDCUserType = "OIDC"
type OIDCUser struct {
	PreferredUsername string   `json:"preferred_username"`
	Name              string   `json:"name"`
	Groups            []string `json:"groups"`
	GivenName         string   `json:"given_name"`
	FamilyName        string   `json:"family_name"`
	Email             string   `json:"email"`
	EmailVerified     bool     `json:"email_verified"`
}
func (u *OIDCUser) GetType() string {
	return OIDCUserType
}
func (u *OIDCUser) GetIdentifier() string {
	if u.PreferredUsername != "" {
		return u.PreferredUsername
	}
	return u.Email
}
func (u *OIDCUser) GetUsername() string {
	return u.PreferredUsername
}