Documentation
¶
Index ¶
Constants ¶
View Source
const Phase1Url = "https://org.xjtu.edu.cn/openplatform/g/admin/login"
View Source
const Phase2Url = "https://org.xjtu.edu.cn/openplatform/g/admin/getUserIdentity"
View Source
const Phase3Url = "https://org.xjtu.edu.cn/openplatform/oauth/auth/getRedirectUrl"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
type ContentType string
const ( None ContentType = "none" Json ContentType = "application/json" Form ContentType = "application/x-www-form-urlencoded" )
type GeneralResponse ¶
type LoginError ¶
type LoginError int
const ( RequestError LoginError = iota ApiError NoIdentity )
func (LoginError) Error ¶
func (t LoginError) Error() string
Click to show internal directories.
Click to hide internal directories.