mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
18 lines
418 B
Go
18 lines
418 B
Go
package auth
|
|
|
|
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)
|
|
}
|