Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2025 Changes in this version + func AuthFunc(userSvc *user.Service, provider fosite.OAuth2Provider, ...) grpc_auth.AuthFunc + type Config struct + AccessTokenLifespan time.Duration + ClientID string + Issuer string + RefreshTokenLifespan time.Duration + type LoginResp struct + Permissions map[string][]string + Token string + User user.User + type Server struct + func NewServer(config Config, userSvc *user.Service) (*Server, error) + 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)