hintegrate

package
v0.0.0-...-335cc7e Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func GetAdminToken(c *request.Context) (string, error)

GetAdminToken retursn an admin token and sets it to the given context

func GrantUser

func GrantUser(c *request.Context, application, uid string, roles []string) (*request.ApiReturn, error)

GrantUser will attempt to call `grantuser` on the login service

func ReadSession

func ReadSession(c *request.Context, sessionId string, noRenew bool) (*request.ApiReturn, error)

ReadSession will attempt to call `readsession` on the login service

Types

This section is empty.

Jump to

Keyboard shortcuts

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