first draft of a new server interface

This commit is contained in:
Tim Möhlmann 2023-09-04 23:33:51 +03:00
parent daf82a5e04
commit d6a9c0bbb9
9 changed files with 481 additions and 9 deletions

View file

@ -32,7 +32,7 @@ const (
)
var (
DefaultEndpoints = &endpoints{
DefaultEndpoints = &Endpoints{
Authorization: NewEndpoint(defaultAuthorizationEndpoint),
Token: NewEndpoint(defaultTokenEndpoint),
Introspection: NewEndpoint(defaultIntrospectEndpoint),
@ -131,7 +131,7 @@ type Config struct {
DeviceAuthorization DeviceAuthorizationConfig
}
type endpoints struct {
type Endpoints struct {
Authorization Endpoint
Token Endpoint
Introspection Endpoint
@ -212,7 +212,7 @@ type Provider struct {
config *Config
issuer IssuerFromRequest
insecure bool
endpoints *endpoints
endpoints *Endpoints
storage Storage
keySet *openIDKeySet
crypto Crypto