server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(securityCode string) (model.Token, error)

CreateToken will authenticate with provider and create a jwt token

func GetConfig

func GetConfig(accessToken string) (model.AuthConfig, error)

GetConfig gets the config from DB, gathers the list of settings to read from DB

func GetIdentities

func GetIdentities(accessToken string) ([]client.Identity, error)

GetIdentities will list all identities for token

func GetIdentity

func GetIdentity(externalID string, externalIDType string, accessToken string) (client.Identity, error)

GetIdentity will list all identities for given filters

func GetRedirectURL

func GetRedirectURL() (map[string]string, error)

GetRedirectURL returns the redirect URL for the provider if applicable

func RefreshToken

func RefreshToken(accessToken string) (model.Token, error)

RefreshToken will refresh a jwt token

func Reload

func Reload() error

Reload will reload the config from DB and reinit the provider

func SearchIdentities

func SearchIdentities(name string, exactMatch bool, accessToken string) ([]client.Identity, error)

SearchIdentities will list all identities for given filters

func SetEnv

func SetEnv(c *cli.Context)

SetEnv sets the parameters necessary

func URLEncoded

func URLEncoded(str string) string

URLEncoded escape url query

func UpdateConfig

func UpdateConfig(authConfig model.AuthConfig) error

UpdateConfig updates the config in DB

func UpgradeSettings

func UpgradeSettings() error

UpgradeSettings upgrades the existing provider specific auth settings to the new generic settings used by this service

Types

This section is empty.

Jump to

Keyboard shortcuts

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