Documentation ¶
Index ¶
- func Auth(ctx *gin.Context)
- func AuthPassword(ctx *gin.Context)
- func CreateUser(ctx *gin.Context)
- func GetUser(ctx *gin.Context)
- func InitRestful(w *scaffold.WebappScaffold)
- func Login(ctx *gin.Context)
- func SsoUserInfo(ctx *gin.Context)
- func Token(ctx *gin.Context)
- type AuthPasswordRequest
- type AuthRequest
- type CacheItem
- type CreateUserRequest
- type GeneralFailReply
- type TokenFailReply
- type TokenReply
- type TokenRequest
- type UserInfo
- type UserResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthPassword ¶
func CreateUser ¶
func InitRestful ¶
func InitRestful(w *scaffold.WebappScaffold)
func SsoUserInfo ¶
Types ¶
type AuthPasswordRequest ¶
type AuthRequest ¶
type AuthRequest struct { ResponseType string `form:"response_type" binding:"required" json:"response_type"` ClientId string `form:"client_id" binding:"required" json:"client_id"` RedirectUri string `form:"redirect_uri" binding:"required" json:"redirect_uri"` Scope []string `form:"scope" binding:"required" json:"scope"` State string `form:"state" binding:"required" json:"state"` }
type CacheItem ¶
type CacheItem struct { ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` RedirectUri string `json:"redirect_uri"` Scope []string `json:"scope"` State string `json:"state"` AuthCode string `json:"auth_code"` CallbackUrl string `json:"callback_url"` SsoAppId int64 `json:"sso_app_id"` AppTokenId int64 `json:"app_token_id"` UserId int64 `json:"user_id"` UserName string `json:"user_name"` UserDisplayName string `json:"user_display_name"` }
type CreateUserRequest ¶
type GeneralFailReply ¶
type GeneralFailReply struct {
ErrorMessage string
}
type TokenFailReply ¶
type TokenFailReply struct {
Error string `json:"error"`
}
type TokenReply ¶
type TokenRequest ¶
type TokenRequest struct { GrantType string `form:"grant_type" binding:"required"` Code string `form:"code" binding:"required"` RedirectUri string `form:"redirect_uri" binding:"required"` ClientId string `form:"client_id" binding:"required"` ClientSecret string `form:"client_secret" binding:"required"` }
type UserResult ¶
Click to show internal directories.
Click to hide internal directories.