Documentation ¶
Index ¶
- Variables
- func MkCookieId() string
- func RandReader() io.Reader
- type Oauth2G
- type Oauth2T
- func (o *Oauth2T) AddUserData(usrKey string, ClientCert *x509.Certificate) error
- func (o *Oauth2T) Authorize(path string, parms map[string]interface{}, RemoteAddr string, ...) (httpstat int, data interface{}, err error)
- func (oa *Oauth2T) CheckCookie(req *http.Request, resp http.ResponseWriter, ...)
- func (oa *Oauth2T) Configure(key string, setter map[string]func(interface{}))
- func (o *Oauth2T) Delete(tree, id string) error
- func (o *Oauth2T) Drop(id string) error
- func (oa *Oauth2T) ExtAuthorize(ch chan stonelizard.ExtAuthorizeIn, path string, parms map[string]interface{}, ...) (int, interface{}, error)
- func (oa *Oauth2T) Get(key string) (interface{}, error)
- func (o *Oauth2T) GetCACert() *x509.Certificate
- func (o *Oauth2T) GetCAKey() *rsa.PrivateKey
- func (o *Oauth2T) GetCertPool() *x509.CertPool
- func (o *Oauth2T) GetDNSNames() []string
- func (o *Oauth2T) GetPending() (map[string]interface{}, error)
- func (o *Oauth2T) GetServerCert() *x509.Certificate
- func (o *Oauth2T) GetServerKey() *rsa.PrivateKey
- func (o *Oauth2T) GetServerX509KeyPair() tls.Certificate
- func (ck *Oauth2T) GetTLSConfig(Access uint8) (*tls.Config, error)
- func (o *Oauth2T) GetTrusted() (map[string]interface{}, error)
- func (o *Oauth2T) LoadUserData() error
- func (oa *Oauth2T) NewSession(hname string, resp http.ResponseWriter)
- func (oa *Oauth2T) ReNewSession(oid string, hname string, resp http.ResponseWriter)
- func (o *Oauth2T) ReadCertFromReader(r io.Reader) (*x509.Certificate, []byte, error)
- func (o *Oauth2T) ReadCertificate(fname string) (*x509.Certificate, []byte, error)
- func (o *Oauth2T) ReadDecryptRsaPrivKey(fname string) (*rsa.PrivateKey, []byte, error)
- func (o *Oauth2T) ReadDecryptRsaPrivKeyFromReader(r io.Reader) (*rsa.PrivateKey, []byte, error)
- func (o *Oauth2T) ReadRsaPrivKey(fname string) (*rsa.PrivateKey, []byte, error)
- func (o *Oauth2T) ReadRsaPrivKeyFromReader(r io.Reader) (*rsa.PrivateKey, []byte, error)
- func (o *Oauth2T) Reject(id string) error
- func (oa *Oauth2T) Set(key string, val interface{}) error
- func (oa *Oauth2T) SetCookie(oid string, hname string, resp http.ResponseWriter)
- func (o *Oauth2T) Setup(udata map[string]interface{}) error
- func (o *Oauth2T) StartCRLServer(listenAddress string, listener *stonelizard.StoppableListener) error
- func (oa *Oauth2T) StartExtAuthorizer(authReq chan stonelizard.ExtAuthorizeIn)
- func (o *Oauth2T) Trust(id string) error
- type Profiler
- type RandomReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorDuplicateFile = errors.New("Error duplicate file")
Functions ¶
func MkCookieId ¶
func MkCookieId() string
func RandReader ¶
Types ¶
type Oauth2T ¶
type Oauth2T struct { CertKit stonelizard.AuthT `json:"CertKit"` RegEndPoint string `json:"RegEndPoint"` TokInfEndPoint string `json:"TokInfEndPoint"` UsrInfEndPoint string `json:"UsrInfEndPoint"` OIDMetaEndPoint string `json:"OIDMetaEndPoint"` RevokeEndPoint string `json:"RevokeEndPoint"` JSONWKSEndPoint string `json:"JSONWKSEndPoint"` Config *oauth2.Config `json:"Config"` UserProfileModel Profiler `json:"-"` Session map[string]map[string]interface{} `json:"-"` }
func (*Oauth2T) AddUserData ¶
func (o *Oauth2T) AddUserData(usrKey string, ClientCert *x509.Certificate) error
func (*Oauth2T) CheckCookie ¶
func (oa *Oauth2T) CheckCookie(req *http.Request, resp http.ResponseWriter, out chan stonelizard.ExtAuthorizeOut, hname string)
func (*Oauth2T) ExtAuthorize ¶
func (oa *Oauth2T) ExtAuthorize(ch chan stonelizard.ExtAuthorizeIn, path string, parms map[string]interface{}, resp http.ResponseWriter, req *http.Request, SavePending func(interface{}) error) (int, interface{}, error)
func (*Oauth2T) GetCACert ¶
func (o *Oauth2T) GetCACert() *x509.Certificate
func (*Oauth2T) GetCAKey ¶
func (o *Oauth2T) GetCAKey() *rsa.PrivateKey
func (*Oauth2T) GetCertPool ¶
func (*Oauth2T) GetDNSNames ¶
func (*Oauth2T) GetPending ¶
func (*Oauth2T) GetServerCert ¶
func (o *Oauth2T) GetServerCert() *x509.Certificate
func (*Oauth2T) GetServerKey ¶
func (o *Oauth2T) GetServerKey() *rsa.PrivateKey
func (*Oauth2T) GetServerX509KeyPair ¶
func (o *Oauth2T) GetServerX509KeyPair() tls.Certificate
func (*Oauth2T) GetTrusted ¶
func (*Oauth2T) LoadUserData ¶
func (*Oauth2T) NewSession ¶
func (oa *Oauth2T) NewSession(hname string, resp http.ResponseWriter)
func (*Oauth2T) ReNewSession ¶
func (oa *Oauth2T) ReNewSession(oid string, hname string, resp http.ResponseWriter)
func (*Oauth2T) ReadCertFromReader ¶
func (*Oauth2T) ReadCertificate ¶
func (*Oauth2T) ReadDecryptRsaPrivKey ¶
func (*Oauth2T) ReadDecryptRsaPrivKeyFromReader ¶
func (*Oauth2T) ReadRsaPrivKey ¶
func (*Oauth2T) ReadRsaPrivKeyFromReader ¶
func (*Oauth2T) SetCookie ¶
func (oa *Oauth2T) SetCookie(oid string, hname string, resp http.ResponseWriter)
func (*Oauth2T) StartCRLServer ¶
func (o *Oauth2T) StartCRLServer(listenAddress string, listener *stonelizard.StoppableListener) error
func (*Oauth2T) StartExtAuthorizer ¶
func (oa *Oauth2T) StartExtAuthorizer(authReq chan stonelizard.ExtAuthorizeIn)
type RandomReader ¶
type RandomReader struct {
// contains filtered or unexported fields
}
func NewRandReader ¶
func NewRandReader() RandomReader
func (RandomReader) Prob ¶
func (r RandomReader) Prob() float32
Click to show internal directories.
Click to hide internal directories.