Skip to content

Commit 608b392

Browse files
committed
rename to RequestWithoutSessionToken
1 parent 7a59dc6 commit 608b392

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

codersdk/agentsdk/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (a *awsSessionTokenExchanger) exchange(ctx context.Context) (AuthenticateRe
8181
}
8282

8383
// request without the token to avoid re-entering this function
84-
res, err = a.client.RequestNoSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/aws-instance-identity", AWSInstanceIdentityToken{
84+
res, err = a.client.RequestWithoutSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/aws-instance-identity", AWSInstanceIdentityToken{
8585
Signature: string(signature),
8686
Document: string(document),
8787
})

codersdk/agentsdk/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (a *azureSessionTokenExchanger) exchange(ctx context.Context) (Authenticate
4747
return AuthenticateResponse{}, err
4848
}
4949

50-
res, err = a.client.RequestNoSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/azure-instance-identity", token)
50+
res, err = a.client.RequestWithoutSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/azure-instance-identity", token)
5151
if err != nil {
5252
return AuthenticateResponse{}, err
5353
}

codersdk/agentsdk/google.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (g *googleSessionTokenExchanger) exchange(ctx context.Context) (Authenticat
5656
return AuthenticateResponse{}, xerrors.Errorf("get metadata identity: %w", err)
5757
}
5858
// request without the token to avoid re-entering this function
59-
res, err := g.client.RequestNoSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/google-instance-identity", GoogleInstanceIdentityToken{
59+
res, err := g.client.RequestWithoutSessionToken(ctx, http.MethodPost, "/api/v2/workspaceagents/google-instance-identity", GoogleInstanceIdentityToken{
6060
JSONWebToken: jwt,
6161
})
6262
if err != nil {

0 commit comments

Comments
 (0)