Documentation ¶
Index ¶
- Variables
- func Authenticate(c *webcontext.Context)
- func AuthenticateByApp(c *webcontext.Context)
- func AuthenticateV2(c *webcontext.Context)
- func AuthenticateV3(c *webcontext.Context)
- func GetUserByBasicAuth(c *webcontext.Context, username string, passwd string) (*identity.UserInfo, error)
- func GetUserInfoByTokenOrBasicAuth(c *webcontext.Context, repoName string) (*identity.UserInfo, error)
- type AuthResp
- type ErrorData
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NO_AUTH_ERROR = errors.New("no auth info")
)
Functions ¶
func Authenticate ¶
func Authenticate(c *webcontext.Context)
func AuthenticateByApp ¶
func AuthenticateByApp(c *webcontext.Context)
func AuthenticateV2 ¶
func AuthenticateV2(c *webcontext.Context)
func AuthenticateV3 ¶
func AuthenticateV3(c *webcontext.Context)
func GetUserByBasicAuth ¶
Types ¶
type AuthResp ¶
type AuthResp struct { Permission *apistructs.ScopeRole Repo *models.Repo }
func ValidaUserRepo ¶
func ValidaUserRepoWithCache ¶
Click to show internal directories.
Click to hide internal directories.