Documentation ¶
Index ¶
- type ClientInfoDbOutput
- func (c *ClientInfoDbOutput) GetDomain() string
- func (c *ClientInfoDbOutput) GetID() string
- func (c *ClientInfoDbOutput) GetName() string
- func (c *ClientInfoDbOutput) GetSecret() string
- func (c *ClientInfoDbOutput) GetUserID() string
- func (c *ClientInfoDbOutput) IsActive() bool
- func (c *ClientInfoDbOutput) IsPublic() bool
- func (c *ClientInfoDbOutput) IsSSO() bool
- func (c *ClientInfoDbOutput) UsePerms() string
- type DB
- type Tx
- func (t *Tx) Commit() error
- func (t *Tx) GetAppList(owner string, admin bool, offset int) ([]ClientInfoDbOutput, error)
- func (t *Tx) GetClientInfo(sub string) (oauth2.ClientInfo, error)
- func (t *Tx) GetUser(sub string) (*User, error)
- func (t *Tx) GetUserEmail(sub string) (string, error)
- func (t *Tx) GetUserList(offset int) ([]User, error)
- func (t *Tx) GetUserRoles(sub string) (string, error)
- func (t *Tx) GetUserToken(subject string, accessToken, refreshToken *string, expiry *time.Time) error
- func (t *Tx) HasUser() error
- func (t *Tx) InsertClientApp(name, domain, owner, perms string, public, sso, active bool) error
- func (t *Tx) InsertUser(subject, email string, verifyEmail bool, roles, userinfo string, active bool) error
- func (t *Tx) ResetClientAppSecret(subject uuid.UUID, owner string) (string, error)
- func (t *Tx) Rollback()
- func (t *Tx) UpdateClientApp(subject uuid.UUID, owner, name, domain, perms string, ...) error
- func (t *Tx) UpdateUser(subject, roles string, active bool) error
- func (t *Tx) UpdateUserInfo(subject, email string, verified bool, userinfo string) error
- func (t *Tx) UpdateUserToken(subject, accessToken, refreshToken string, expiry time.Time) error
- func (t *Tx) UserEmailExists(email string) (exists bool, err error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInfoDbOutput ¶
type ClientInfoDbOutput struct {
Sub, Name, Secret, Domain, Owner, Perms string
Public, SSO, Active bool
}
func (*ClientInfoDbOutput) GetDomain ¶
func (c *ClientInfoDbOutput) GetDomain() string
func (*ClientInfoDbOutput) GetID ¶
func (c *ClientInfoDbOutput) GetID() string
func (*ClientInfoDbOutput) GetName ¶
func (c *ClientInfoDbOutput) GetName() string
GetName is an extra field for the oauth handler to display the application name
func (*ClientInfoDbOutput) GetSecret ¶
func (c *ClientInfoDbOutput) GetSecret() string
func (*ClientInfoDbOutput) GetUserID ¶
func (c *ClientInfoDbOutput) GetUserID() string
func (*ClientInfoDbOutput) IsActive ¶
func (c *ClientInfoDbOutput) IsActive() bool
IsActive is an extra field for the app manager to get the active state
func (*ClientInfoDbOutput) IsPublic ¶
func (c *ClientInfoDbOutput) IsPublic() bool
func (*ClientInfoDbOutput) IsSSO ¶
func (c *ClientInfoDbOutput) IsSSO() bool
IsSSO is an extra field for the oauth handler to skip the user input stage this is for trusted applications to get permissions without asking the user
func (*ClientInfoDbOutput) UsePerms ¶
func (c *ClientInfoDbOutput) UsePerms() string
UsePerms is an extra field for the userinfo handler to return user permissions matching the requested values
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) GetAppList ¶
func (*Tx) GetClientInfo ¶
func (*Tx) GetUserToken ¶
func (*Tx) InsertClientApp ¶
func (*Tx) InsertUser ¶
func (*Tx) ResetClientAppSecret ¶
func (*Tx) UpdateClientApp ¶
func (*Tx) UpdateUserInfo ¶
func (*Tx) UpdateUserToken ¶
Click to show internal directories.
Click to hide internal directories.