[v11.0.x] Cloud migrations: create endpoint to create an access token (#86137)

Cloud migrations: create endpoint to create an access token (#84690)

* fix merge conflicts

* make token expiration configurable

(cherry picked from commit a2e21eac8c)

Co-authored-by: Bruno <brunotj2015@hotmail.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-04-15 14:53:53 +01:00
committed by GitHub
co-authored by Bruno
parent 16f1b9d4f0
commit 0fe31d86fc
12 changed files with 560 additions and 53 deletions
@@ -15,10 +15,9 @@ func (s *NoopServiceImpl) MigrateDatasources(ctx context.Context, request *cloud
return nil, cloudmigration.ErrFeatureDisabledError
}
func (s *NoopServiceImpl) CreateToken(ctx context.Context) error {
return cloudmigration.ErrFeatureDisabledError
func (s *NoopServiceImpl) CreateToken(ctx context.Context) (cloudmigration.CreateAccessTokenResponse, error) {
return cloudmigration.CreateAccessTokenResponse{}, cloudmigration.ErrFeatureDisabledError
}
func (s *NoopServiceImpl) ValidateToken(ctx context.Context, token string) error {
return cloudmigration.ErrFeatureDisabledError
}