From 7a64a84761cbe9ec55cbe9bb550ec52dbee4469f Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 29 Jul 2019 15:53:09 -0700 Subject: [PATCH] Pass the given context. --- authority/authorize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authority/authorize.go b/authority/authorize.go index b354fe84..6ce2d5bd 100644 --- a/authority/authorize.go +++ b/authority/authorize.go @@ -86,7 +86,7 @@ func (a *Authority) Authorize(ctx context.Context, ott string) ([]provisioner.Si // Call the provisioner AuthorizeSign method to apply provisioner specific // auth claims and get the signing options. - opts, err := p.AuthorizeSign(context.Background(), ott) + opts, err := p.AuthorizeSign(ctx, ott) if err != nil { return nil, &apiError{errors.Wrap(err, "authorizeSign"), http.StatusUnauthorized, errContext} }