Documentation ¶
Index ¶
- func AuthAs(c *request.Context, application, username, deviceType string) (*request.ApiReturn, error)
- func GetAdminToken(c *request.Context) (string, error)
- func GrantUser(c *request.Context, application, uid string, roles []string) (*request.ApiReturn, error)
- func ReadSession(c *request.Context, sessionId string, noRenew bool) (*request.ApiReturn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthAs ¶
func AuthAs(c *request.Context, application, username, deviceType string) (*request.ApiReturn, error)
AuthAs will attempt to call `authas` on the login service
func GetAdminToken ¶
GetAdminToken retursn an admin token and sets it to the given context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.