Documentation ¶
Overview ¶
Package bkpaas provides bkpaas auth client.
Index ¶
Constants ¶
View Source
const ( // BKLoginProvider 蓝鲸内部统一登入 BKLoginProvider = "BK_LOGIN" // BKPaaSProvider 外部统一登入, 可使用主域名或者ESB查询 BKPaaSProvider = "BK_PAAS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthLoginClient ¶
type AuthLoginClient interface { GetLoginCredentialFromCookies(r *http.Request) (*LoginCredential, error) GetUserInfoByToken(ctx context.Context, host, uid, token string) (string, error) BuildLoginRedirectURL(r *http.Request, webHost string) string BuildLoginURL(r *http.Request) (string, string) }
AuthLoginClient 登入鉴权
func NewAuthLoginClient ¶
func NewAuthLoginClient(conf *cc.LoginAuthSettings) AuthLoginClient
NewAuthLoginClient init client
type LoginCredential ¶
LoginCredential uid/token for grpc auth
Click to show internal directories.
Click to hide internal directories.