Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AuthEndpoint is the login authorization endpoint. AuthEndpoint = "https://login.changkun.de/auth" // VerifyEndpoint is the login verify endpoint. VerifyEndpoint = "https://login.changkun.de/verify" )
View Source
var ( ErrBadRequest = errors.New("bad request") )
Functions ¶
func HandleAuth ¶
Handle handles authentication by checking either query parameters regarding token or cookie auth.
func RequestToken ¶
RequestToken requests the login endpoint and returns the token for login.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.