pkg

package
v0.0.0-...-a385841 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const JWTTOKEN = "jwt_token"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProxy

type AuthProxy struct {
	// contains filtered or unexported fields
}

func NewProxyHandler

func NewProxyHandler(becli *Client) *AuthProxy

func (*AuthProxy) LoginHandler

func (a *AuthProxy) LoginHandler(ctx *gin.Context)

handler /login

func (*AuthProxy) TokenReviewHandler

func (a *AuthProxy) TokenReviewHandler(ctx *gin.Context)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(tokenep, loginep string, debug bool) *Client

func (*Client) VerifyLogin

func (c *Client) VerifyLogin(user, password string) (string, error)

return token ,error

func (*Client) VerifyToken

func (c *Client) VerifyToken(token string) (*user, error)

Jump to

Keyboard shortcuts

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