@@ -89,8 +89,7 @@ type FakeIDP struct {
89
89
stateToIDTokenClaims * syncmap.Map [string , jwt.MapClaims ]
90
90
refreshIDTokenClaims * syncmap.Map [string , jwt.MapClaims ]
91
91
// Device flow
92
- deviceCode * syncmap.Map [string ,deviceFlow ]
93
- deviceCodeInput * syncmap.Map [string , externalauth.ExchangeDeviceCodeResponse ]
92
+ deviceCode * syncmap.Map [string ,deviceFlow ]
94
93
95
94
// hooks
96
95
// hookValidRedirectURL can be used to reject a redirect url from the
@@ -1031,15 +1030,15 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
1031
1030
_ = p .String (r .URL .Query (),"" ,"scopes" )
1032
1031
if len (p .Errors )> 0 {
1033
1032
httpapi .Write (r .Context (),rw ,http .StatusBadRequest , codersdk.Response {
1034
- Message :fmt . Sprintf ( "Invalid query params" ) ,
1033
+ Message :"Invalid query params" ,
1035
1034
Validations :p .Errors ,
1036
1035
})
1037
1036
return
1038
1037
}
1039
1038
1040
1039
if clientID != f .clientID {
1041
1040
httpapi .Write (r .Context (),rw ,http .StatusBadRequest , codersdk.Response {
1042
- Message :fmt . Sprintf ( "Invalid client id" ) ,
1041
+ Message :"Invalid client id" ,
1043
1042
})
1044
1043
return
1045
1044
}