Help us shape the future of Go! Take the 2026 Go Developer Survey

identity_svc_http

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 11 Imported by: 1

README

identity_svc_http

Documentation

Index

Constants

View Source
const (
	SessionTokenName = "session_token"
	UserName         = "user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResp

type ErrorResp struct {
	Text string `json:"Text"`
}

type IdentityData

type IdentityData struct {
	Name     string `json:"Name"`
	Identity string `json:"Identity"`
}

type IdentitySvc

type IdentitySvc struct {
	// contains filtered or unexported fields
}

func New

func New(
	backend identity.Backend,
	cookieCtxKey string,
	identities []identity.Identity,
	verifiers []identity.Verifier,
	log hlog.Logger,
) (*IdentitySvc, error)

func (*IdentitySvc) Register

func (is *IdentitySvc) Register() (public, private *http.ServeMux)

type ListMyIdentitiesAndVerifiersResp

type ListMyIdentitiesAndVerifiersResp struct {
	Identities []*IdentityData `json:"Identities"`
	Verifiers  []string        `json:"Verifiers"`
}

type LoginAsReq

type LoginAsReq struct {
	User string `json:"User"`
}

type LoginAsResp

type LoginAsResp struct {
	Session string `json:"Session"`
	User    string `json:"User"`
	Error   string `json:"Error"`
}

type StartReq

type StartReq struct {
	VerifierName string            `json:"VerifierName"`
	IdentityName string            `json:"IdentityName"`
	Identity     string            `json:"Identity"`
	Args         map[string]string `json:"Args"`
	Values       map[string]string `json:"Values"`
}

type StartResp

type StartResp struct {
	Directions map[string]string `json:"Directions"`
}

type Status

type Status struct {
	Token string `json:"Token"`

	Authenticating *StatusAuthenticating `json:"Authenticating"`
	Authenticated  *StatusAuthenticated  `json:"Authenticated"`
}

type StatusAuthenticated

type StatusAuthenticated struct {
	User string `json:"User"`
}

type StatusAuthenticating

type StatusAuthenticating struct {
	Objective        string                   `json:"Objective"`
	RemainingFactors int                      `json:"RemainingFactors"`
	CompletedFactors []StatusCompletedFactors `json:"CompletedFactors"`
}

type StatusCompletedFactors

type StatusCompletedFactors struct {
	VerifierName string `json:"VerifierName"`
	IdentityName string `json:"IdentityName"`
	Identity     string `json:"Identity"`
}

type VerifierDetails

type VerifierDetails struct {
	Name           string `json:"Name"`
	IdentityName   string `json:"IdentityName"`
	SupportRegular bool   `json:"SupportRegular"`
	SupportReverse bool   `json:"SupportReverse"`
	SupportOAuth2  bool   `json:"SupportOAuth2"`
	SupportStatic  bool   `json:"SupportStatic"`
}

type VerifierDetailsResp

type VerifierDetailsResp struct {
	IdentityNames []string           `json:"IdentityNames"`
	Verifiers     []*VerifierDetails `json:"Verifiers"`
}

type VerifyReq

type VerifyReq struct {
	VerifierName     string `json:"VerifierName"`
	VerificationCode string `json:"VerificationCode"`
	IdentityName     string `json:"IdentityName"`
	Identity         string `json:"Identity"`
}

Jump to

Keyboard shortcuts

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