2023-09-28 12:18:09 +02:00
|
|
|
package auth
|
2023-06-26 16:38:43 +02:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2023-06-27 08:47:25 +02:00
|
|
|
"github.com/grafana/grafana/pkg/plugins/plugindef"
|
2023-06-26 16:38:43 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ExternalService struct {
|
|
|
|
|
ClientID string `json:"clientId"`
|
|
|
|
|
ClientSecret string `json:"clientSecret"`
|
|
|
|
|
PrivateKey string `json:"privateKey"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ExternalServiceRegistry interface {
|
2023-06-27 08:47:25 +02:00
|
|
|
RegisterExternalService(ctx context.Context, name string, svc *plugindef.ExternalServiceRegistration) (*ExternalService, error)
|
2023-06-26 16:38:43 +02:00
|
|
|
}
|