Documentation ¶
Index ¶
- type Flags
- type Jar
- type Modifier
- func WithAuthURL(url string) Modifier
- func WithCA(fileContent []byte) Modifier
- func WithFlags(f *Flags) Modifier
- func WithLogger(log logger.Logger) Modifier
- func WithPrincipals(raw string) Modifier
- func WithTimeLimit(limit time.Duration) Modifier
- func WithUseGroups(use bool) Modifier
- func WithUserCertTimeLimit(duration time.Duration) Modifier
- type Server
- func (s *Server) Authenticate(ctx context.Context, req *apb.AuthenticateRequest) (*apb.AuthenticateResponse, error)
- func (s *Server) FeedToken(key common.Key, cookie oauth.AuthData)
- func (s *Server) GetChannel(cancel context.CancelFunc, pub common.Key) chan oauth.AuthData
- func (s *Server) HostCertificate(ctx context.Context, request *apb.HostCertificateRequest) (*apb.HostCertificateResponse, error)
- func (s *Server) Token(ctx context.Context, req *apb.TokenRequest) (*apb.TokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { TimeLimit time.Duration AuthURL string Principals string UseGroups bool CA []byte UserCertTimeLimit time.Duration }
func DefaultFlags ¶
func DefaultFlags() *Flags
type Modifier ¶
func WithAuthURL ¶
WithAuthURL supplies the URL to send users to for authentication. It is the URL of a running astore server.
func WithLogger ¶
func WithPrincipals ¶
func WithTimeLimit ¶
func WithUseGroups ¶
WithUseGroups enables (or disables) the propagation of user groups as principals.
func WithUserCertTimeLimit ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Authenticate ¶
func (s *Server) Authenticate(ctx context.Context, req *apb.AuthenticateRequest) (*apb.AuthenticateResponse, error)
func (*Server) GetChannel ¶
func (*Server) HostCertificate ¶
func (s *Server) HostCertificate(ctx context.Context, request *apb.HostCertificateRequest) (*apb.HostCertificateResponse, error)
func (*Server) Token ¶
func (s *Server) Token(ctx context.Context, req *apb.TokenRequest) (*apb.TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.