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

Commit225c6d7

Browse files
committed
linting
1 parent41288e7 commit225c6d7

File tree

1 file changed

+3
-4
lines changed
  • coderd/coderdtest/oidctest

1 file changed

+3
-4
lines changed

‎coderd/coderdtest/oidctest/idp.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ type FakeIDP struct {
8989
stateToIDTokenClaims*syncmap.Map[string, jwt.MapClaims]
9090
refreshIDTokenClaims*syncmap.Map[string, jwt.MapClaims]
9191
// Device flow
92-
deviceCode*syncmap.Map[string,deviceFlow]
93-
deviceCodeInput*syncmap.Map[string, externalauth.ExchangeDeviceCodeResponse]
92+
deviceCode*syncmap.Map[string,deviceFlow]
9493

9594
// hooks
9695
// hookValidRedirectURL can be used to reject a redirect url from the
@@ -1031,15 +1030,15 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
10311030
_=p.String(r.URL.Query(),"","scopes")
10321031
iflen(p.Errors)>0 {
10331032
httpapi.Write(r.Context(),rw,http.StatusBadRequest, codersdk.Response{
1034-
Message:fmt.Sprintf("Invalid query params"),
1033+
Message:"Invalid query params",
10351034
Validations:p.Errors,
10361035
})
10371036
return
10381037
}
10391038

10401039
ifclientID!=f.clientID {
10411040
httpapi.Write(r.Context(),rw,http.StatusBadRequest, codersdk.Response{
1042-
Message:fmt.Sprintf("Invalid client id"),
1041+
Message:"Invalid client id",
10431042
})
10441043
return
10451044
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp