Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ Next: nil, SkipRoutePrefix: nil, BaseUrl: "http://test.sudytech.edu.cn/cas", LoginUrl: "http://test.sudytech.edu.cn/cas/login", LogoutUrl: "http://test.sudytech.edu.cn/cas/logout", ValidateUrl: "http://test.sudytech.edu.cn/cas/serviceValidate", ClientSecret: "28fbbc96-6171-4de7-89ca-454293f824cb", CookieName: "_sop_session_", }
Functions ¶
func GenerateJwtToken ¶
func GenerateJwtToken(payload *jwt_parser.JwtPayload, key string) string
Types ¶
type Config ¶
type Config struct { Next func(c *fiber.Ctx) bool //skip this middleware on this condition SkipRoutePrefix []string `json:"skipRoutePrefix"` BaseUrl string `json:"baseUrl"` LoginUrl string `json:"loginUrl"` LogoutUrl string `json:"logoutUrl"` ValidateUrl string `json:"validateUrl"` ClientSecret string `json:"clientSecret"` CookieName string `json:"cookieName"` }
Click to show internal directories.
Click to hide internal directories.