Documentation ¶
Index ¶
- func AuthFunc(userSvc *user.Service, provider fosite.OAuth2Provider, ...) grpc_auth.AuthFunc
- type Config
- type LoginResp
- type Server
- func (s *Server) AuthEndpoint(rw http.ResponseWriter, req *http.Request)
- func (s *Server) GetPublicKey() *rsa.PublicKey
- func (s *Server) IntrospectionEndpoint(rw http.ResponseWriter, req *http.Request)
- func (s *Server) Login(ctx context.Context, username, password string) (*LoginResp, error)
- func (s *Server) Logout(ctx context.Context) error
- func (s *Server) Provider() fosite.OAuth2Provider
- func (s *Server) RevokeEndpoint(rw http.ResponseWriter, req *http.Request)
- func (s *Server) TokenEndpoint(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AuthEndpoint ¶
func (s *Server) AuthEndpoint(rw http.ResponseWriter, req *http.Request)
func (*Server) GetPublicKey ¶
func (*Server) IntrospectionEndpoint ¶
func (s *Server) IntrospectionEndpoint(rw http.ResponseWriter, req *http.Request)
func (*Server) Provider ¶
func (s *Server) Provider() fosite.OAuth2Provider
func (*Server) RevokeEndpoint ¶
func (s *Server) RevokeEndpoint(rw http.ResponseWriter, req *http.Request)
func (*Server) TokenEndpoint ¶
func (s *Server) TokenEndpoint(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.