1package azureutil
2
3import (
4	"fmt"
5
6	"github.com/Azure/go-autorest/autorest"
7)
8
9// accessToken is interim autorest.Authorizer until we figure out oauth token
10// handling. It holds the access token.
11type accessToken string
12
13func (a accessToken) WithAuthorization() autorest.PrepareDecorator {
14	return autorest.WithHeader("Authorization", fmt.Sprintf("Bearer %s", string(a)))
15}
16