grafana/pkg/plugins/oauth/models.go

18 lines
419 B
Go

package oauth
import (
"context"
"github.com/grafana/grafana/pkg/plugins/plugindef"
)
type ExternalService struct {
ClientID string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
PrivateKey string `json:"privateKey"`
}
type ExternalServiceRegistry interface {
RegisterExternalService(ctx context.Context, name string, svc *plugindef.ExternalServiceRegistration) (*ExternalService, error)
}