idservice

package
v0.0.0-...-e872c33 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2014 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p Params) (http.Handler, error)

New returns a new handler that services an identity-providing service. This acts as a login service and can discharge third-party caveats for users.

Types

type Params

type Params struct {
	Service bakery.NewServiceParams
	Users   map[string]*UserInfo
}

Params holds parameters for New.

type UserInfo

type UserInfo struct {
	Password string
	Groups   map[string]bool
}

UserInfo holds information about a user.

type WaitResponse

type WaitResponse struct {
	Macaroon *macaroon.Macaroon
}

WaitResponse holds the response from the wait endpoint.

Jump to

Keyboard shortcuts

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