models

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServerUser

type AuthServerUser struct {
	ID_               string       `json:"id"` // need exported for unmarshalling
	Username_         string       `json:"username"`
	Password_         string       `json:"password"`
	FirstName         string       `json:"firstName"`
	LastName          string       `json:"lastName"`
	Email             string       `json:"email"`
	EmailVerified     bool         `json:"emailVerified"`
	Phone             string       `json:"phone"`
	PhoneVerified     bool         `json:"phoneVerified"`
	PreferredLanguage language.Tag `json:"preferredLanguage"`
	IsAdmin_          bool         `json:"isAdmin"`
}

AuthServerUser implements oidc-server storage.User. It is used for development and testing purposes only. nolint: revive Still cannot access common interface fields:

https://go101.org/generics/888-the-status-quo-of-go-custom-generics.html

func (AuthServerUser) ID

func (u AuthServerUser) ID() string

func (AuthServerUser) IsAdmin

func (u AuthServerUser) IsAdmin() bool

func (AuthServerUser) Password

func (u AuthServerUser) Password() string

func (AuthServerUser) Username

func (u AuthServerUser) Username() string

Jump to

Keyboard shortcuts

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