Documentation
¶
Index ¶
- Constants
- func AccessToken(c *gin.Context)
- func Authorize(c *gin.Context)
- func ChangeEmail(ctx *gin.Context)
- func ChangePassword(ctx *gin.Context)
- func ChangeProfile(ctx *gin.Context)
- func CheckVerifyCode(ctx *gin.Context)
- func CreateClient(c *gin.Context)
- func DealCensorRes(ctx *gin.Context)
- func GenerateStateOauthCookie(w http.ResponseWriter) string
- func GetProfile(ctx *gin.Context)
- func InitServer()
- func InternalErrorHandler(err error) (re *errors.Response)
- func Login(ctx *gin.Context)
- func Logout(ctx *gin.Context)
- func OauthGithubCallback(c *gin.Context)
- func OauthGithubLogin(c *gin.Context)
- func OauthLarkCallback(c *gin.Context)
- func OauthLarkLogin(c *gin.Context)
- func OauthUserInfo(c *gin.Context)
- func RefreshToken(c *gin.Context)
- func Register(ctx *gin.Context)
- func ResetPassword(ctx *gin.Context)
- func ResponseErrorHandler(re *errors.Response)
- func ResponseTokenHandler(w http.ResponseWriter, data map[string]interface{}, header http.Header, ...) error
- func SendEmail(ctx *gin.Context)
- func UploadAvatar(ctx *gin.Context)
- func UserInfo(ctx *gin.Context)
- func VerifyAccount(ctx *gin.Context)
- type ClientStoreItem
Constants ¶
View Source
const ( AppAccessTokenURL = "https://open.feishu.cn/open-apis/auth/v3/app_access_token/internal" UserAccessTokenURL = "https://open.feishu.cn/open-apis/authen/v1/oidc/access_token" )
View Source
const (
// GitHub user info url
GithubUserInfoURL = "https://api.github.com/user"
)
Variables ¶
This section is empty.
Functions ¶
func ChangeEmail ¶
func ChangeProfile ¶
func CheckVerifyCode ¶
func DealCensorRes ¶
func GenerateStateOauthCookie ¶
func GenerateStateOauthCookie(w http.ResponseWriter) string
func GetProfile ¶
func InitServer ¶
func InitServer()
func InternalErrorHandler ¶
func OauthGithubCallback ¶
func OauthGithubLogin ¶
func OauthLarkCallback ¶
OauthLarkCallback read url from lark callback, get `code`, request app_access_token, at last request lark url to get user_access_token.
func OauthLarkLogin ¶
OauthLarkLogin redirect url to lark auth page.
func OauthUserInfo ¶
func ResetPassword ¶
func ResponseErrorHandler ¶
func ResponseTokenHandler ¶
func UploadAvatar ¶
func VerifyAccount ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.