logconsent

package
v0.0.0-...-555cbc1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(err error)

Types

type Database

type Database struct {
	Dbuser string
	Dbpw   string
	Dbname string
	Dbport string
	Dbhost string
	Db     *sql.DB
}

func (*Database) Connect

func (d *Database) Connect()

func (*Database) Validate

func (d *Database) Validate(mail, pw string) bool

type Hydra

type Hydra struct {
	Client hydra.SDK
	Conf   oauth2.Config
}

func CreateHydraClient

func CreateHydraClient(params map[string]string) *Hydra

func (*Hydra) AcceptConsent

func (h *Hydra) AcceptConsent(id string, grantedScopes []string) string

func (*Hydra) AcceptLogin

func (h *Hydra) AcceptLogin(subject, challenge string) string

func (*Hydra) AuthURL

func (h *Hydra) AuthURL() string

type User

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

Jump to

Keyboard shortcuts

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