authsource

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSourceHandler

type AuthSourceHandler struct {
	base.BaseHandler
}

func (*AuthSourceHandler) Create

func (h *AuthSourceHandler) Create(c *gin.Context)

Create create authsource @Tags AuthSource @Summary create AuthSource @Description create AuthSource oauth(authURL,tokenURL,userInfoURL,redirectURL,appID,appSecret,scopes) ldap(basedn,ldapaddr,binduser,password) @Accept json @Produce json @Param param body models.AuthSource true "表单" @Success 200 {object} handlers.ResponseStruct{Data=models.AuthSource} "AuthSource" @Router /v1/authsource [post] @Security JWT

func (*AuthSourceHandler) Delete

func (h *AuthSourceHandler) Delete(c *gin.Context)

Create delete authsource @Tags AuthSource @Summary delete AuthSource @Description delete AuthSource @Accept json @Produce json @Param source_id path uint true "source_id" @Success 200 {object} handlers.ResponseStruct{Data=object} "AuthSource" @Router /v1/authsource/{source_id} [delete] @Security JWT

func (*AuthSourceHandler) GetAuthSourcePredifinedVar

func (h *AuthSourceHandler) GetAuthSourcePredifinedVar(c *gin.Context)

@Tags AuthSource @Summary AuthSource 预定义的源默认值 @Description AuthSource 预定义的源默认值 @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=vendorData} "AuthSource" @Param vendor query string true "vendor" @Router /v1/system/authsource/predefined [get] @Security JWT

func (*AuthSourceHandler) ListAuthSource

func (h *AuthSourceHandler) ListAuthSource(c *gin.Context)

ListAuthSource list authsource @Tags AuthSource @Summary AuthSource列表 @Description AuthSource列表 @Accept json @Produce json @Param page query int false "page" @Param size query int false "page" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]models.AuthSource}} "AuthSource" @Router /v1/authsource [get] @Security JWT

func (*AuthSourceHandler) ListAuthSourceSimple

func (h *AuthSourceHandler) ListAuthSourceSimple(c *gin.Context)

ListAuthSourceSimple list authsource simple @Tags AuthSource @Summary AuthSource列表 (no auth) @Description AuthSource列表 (no auth) @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=[]models.AuthSource} "AuthSource" @Router /v1/system/authsource [get] @Security JWT

func (*AuthSourceHandler) Modify

func (h *AuthSourceHandler) Modify(c *gin.Context)

Create modify authsource @Tags AuthSource @Summary modify AuthSource @Description modify AuthSource @Accept json @Produce json @Param param body models.AuthSource true "表单" @Param source_id path uint true "source_id" @Success 200 {object} handlers.ResponseStruct{Data=models.AuthSource} "AuthSource" @Router /v1/authsource/{source_id} [put] @Security JWT

func (*AuthSourceHandler) RegistRouter

func (h *AuthSourceHandler) RegistRouter(rg *gin.RouterGroup)

Jump to

Keyboard shortcuts

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