Esempio n. 1
0
func newTestPage(keys []jwk.Key, idps []idpdb.Element) *Page {
	return New(
		server.NewStopper(),
		"https://ta.example.org",
		"https://ta.example.org/callback",
		test_taSigAlg,
		nil,
		"Auth-User-Backend",
		30,
		time.Minute,
		time.Hour,
		"Auth-User",
		30,
		time.Minute,
		10,
		10,
		10,
		time.Hour,
		20,
		time.Minute,
		keydb.NewMemoryDb(keys),
		idpdb.NewMemoryDb(idps),
		asession.NewMemoryDb(),
		token.NewMemoryDb(),
		rand.New(time.Minute),
		"/",
		false,
		true,
	)
}
Esempio n. 2
0
func newTestHandler(keys []jwk.Key, idps []idpdb.Element) *handler {
	return New(
		server.NewStopper(),
		"https://to.example.org",
		test_toTaSigAlg,
		"",
		"Edo-Cooperation",
		30,
		10,
		time.Hour,
		10,
		time.Minute,
		keydb.NewMemoryDb(keys),
		idpdb.NewMemoryDb(idps),
		token.NewMemoryDb(),
		rand.New(time.Minute),
		http.DefaultClient,
		"/",
		false,
		true,
	).(*handler)
}