ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry variables (#78056)

ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry
This commit is contained in:
Gabriel MABILLE
2023-11-13 16:23:11 +01:00
committed by GitHub
parent 7617a7a3fc
commit fe8d0e6381
8 changed files with 45 additions and 22 deletions
+2 -2
View File
@@ -437,8 +437,8 @@ type FakeAuthService struct {
Result *auth.ExternalService
}
func (f *FakeAuthService) HasExternalService(ctx context.Context, pluginID string) bool {
return f.Result != nil
func (f *FakeAuthService) HasExternalService(ctx context.Context, pluginID string) (bool, error) {
return f.Result != nil, nil
}
func (f *FakeAuthService) RegisterExternalService(ctx context.Context, pluginID string, pType plugindef.Type, svc *plugindef.ExternalServiceRegistration) (*auth.ExternalService, error) {