baisc structure and server begin server impl

This commit is contained in:
Livio Amstutz 2019-11-18 15:37:48 +01:00
parent 26bd873f4e
commit f6ba7ab75e
17 changed files with 575 additions and 0 deletions

16
pkg/server/authrequest.go Normal file
View file

@ -0,0 +1,16 @@
package server
import (
"errors"
"net/http"
"github.com/caos/oidc/pkg/oidc"
)
func ParseAuthRequest(w http.ResponseWriter, r *http.Request) (*oidc.AuthRequest, error) {
return nil, errors.New("Unimplemented") //TODO: impl
}
func ValidateAuthRequest(authRequest *oidc.AuthRequest) error {
return errors.New("Unimplemented") //TODO: impl https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.2
}