Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit608b392

Browse files
committed
rename to RequestWithoutSessionToken
1 parent7a59dc6 commit608b392

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
returnAuthenticateResponse{},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
iferr!=nil {
5252
returnAuthenticateResponse{},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
returnAuthenticateResponse{},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
iferr!=nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp