Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StorageSessionName ... StorageSessionName = "go_oauth2_server_session" // UserSessionKey ... UserSessionKey = "go_oauth2_server_user" // ErrSessonNotStarted ... ErrSessonNotStarted = errors.New("Session not started") )
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AuthorizationCode ¶
type AuthorizationCode struct { Common ClientID sql.NullString `db:"client_id"` UserID sql.NullString `db:"user_id"` Client *Client User *Users Code string `sql:"code"` RedirectURI sql.NullString `db:"redirect_uri"` ExpiresAt time.Time `sql:"expires_at"` Scope string `sql:"scope"` }
type Client ¶
type Client struct { Common Key string `db:"key" json:"key"` Secret string `db:"secret" json:"secret"` RedirectURI sql.NullString `db:"redirect_uri" json:"redirect_uri"` }
type EmailTokenModel ¶
type RefreshToken ¶
type UserSession ¶
type Users ¶
type Users struct { Common RoleID sql.NullString `db:"role_id" json:"role_id"` Role *Role Username string `db:"username" json:"username"` Password sql.NullString `db:"password" json:"password"` }
Click to show internal directories.
Click to hide internal directories.