Documentation ¶
Index ¶
- Variables
- func AuthRequired(c *gin.Context)
- func AuthRequiredWithRPC(c *gin.Context)
- func Authenticate(t, method, url string, checkAuth bool) (*apipb.CurrentUser, int, error)
- func GetAccessToken(c *gin.Context) string
- func GetTenantID(c *gin.Context) string
- func GetTransID(c *gin.Context) string
- func GetUser(c *gin.Context) (bool, *apipb.CurrentUser)
- func GetUserID(c *gin.Context) string
- func GetUserName(c *gin.Context) string
- func InitIdentity()
Constants ¶
This section is empty.
Variables ¶
View Source
var IdentityImpl = new(apipb.IdentityClientImpl)
View Source
var Validate = validator.New()
Functions ¶
func AuthRequired ¶
func AuthRequiredWithRPC ¶ added in v1.0.1
func Authenticate ¶ added in v1.0.1
func GetAccessToken ¶
func GetTenantID ¶
func GetTransID ¶
func GetUserName ¶
func InitIdentity ¶ added in v1.0.1
func InitIdentity()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.