Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAuthAndNotGuestHandler ¶
检查客户端是否是认证状态, 并且不是 guest 认证. 如果是, 添加 sso_token_string<-->x-token, sso_token<-->*token.Token, sso_session<-->*session.Session, sso_user<-->*model.User 到 ctx *gin.Context; 如果否, 终止 Handlers Chain.
func MustAuthHandler ¶
检查客户端是否是认证状态, 可以是 guest 认证. 如果是, 添加 sso_token_string<-->x-token, sso_token<-->*token.Token, sso_session<-->*session.Session, sso_user<-->*model.User 到 ctx *gin.Context; 如果否, 终止 Handlers Chain.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.