auth_proxy_cas

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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

func New

func New(config ...Config) fiber.Handler

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL