session

package
v0.0.0-...-271f870 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEL_LOGIN_REQ   reqType = 0
	DEL_CONSENT_REQ reqType = 1
	GET_CONSENT_REQ reqType = 2
)

Variables

This section is empty.

Functions

func Logout

func Logout(ctx context.Context, cfg *hydra.Config, subject string) error

func RevokeApp

func RevokeApp(ctx context.Context, cfg *hydra.Config, subject, clientid string) error

Types

type ConsentReq

type ConsentReq struct {
	Client hydra.ClientInfo `json:client`
}

type ConsentSession

type ConsentSession struct {
	GrantScope     []string   `json:"grant_scope"`
	HandledAt      time.Time  `json:"handled_at"`
	ConsentRequest ConsentReq `json:"consent_request"`
}

func FetchConsentSessions

func FetchConsentSessions(ctx context.Context, cfg *hydra.Config, subject string) ([]ConsentSession, error)

func Filter

func Filter(sess []ConsentSession) []ConsentSession

will keep only most recent session for each client

Jump to

Keyboard shortcuts

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