Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CRUDCheckRun ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct { ID string ClientID string RedirectURI string State string ResponseType string // PKCE extension CodeChallenge string CodeChallengeMethod string Claims Claims }
todo(n.rodionov): make similar struct in auth module
type Credentials ¶
type Credentials interface {
UID() string
}
type Storage ¶
type Storage interface { Close() error // todo: move provider into separate storage ProviderCreate(pid string) error UserCreate(pid string, c Credentials) error UserRead(pid string, uid string) (Credentials, error) UserUpdate(pid string, uid string, updater func(c Credentials) (Credentials, error)) error UserDelete(pid string, uid string) error AuthRequestCreate(a AuthRequest) error AuthRequestRead(uid string) (AuthRequest, error) AuthRequestUpdate(uid string, updater func(a AuthRequest) (AuthRequest, error)) error AuthRequestDelete(uid string) error AuthCodeCreate(a AuthCode) error AuthCodeRead(uid string) (AuthCode, error) AuthCodeDelete(uid string) error }
Click to show internal directories.
Click to hide internal directories.