We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent043004f commit45df24dCopy full SHA for 45df24d
coderd/httpmw/apikey_test.go
@@ -530,13 +530,13 @@ func TestAPIKey(t *testing.T) {
530
)
531
r.Header.Set(codersdk.SessionTokenHeader,token)
532
533
-// Include a valid oauth token for refreshing. If this token is invalid,
534
-// it is difficult to tell an auth failure froma expired api key, or
535
-// an expired oauth key.
536
-oauthToken:=&oauth2.Token{
537
-AccessToken:"wow",
538
-RefreshToken:"moo",
539
-Expiry:dbtime.Now().AddDate(0,0,1),
+// Include a valid oauth token for refreshing. If this token is invalid,
+// it is difficult to tell an auth failure froman expired api key, or
+// an expired oauth key.
+oauthToken:=&oauth2.Token{
+AccessToken:"wow",
+RefreshToken:"moo",
+Expiry:dbtime.Now().AddDate(0,0,1),
540
}
541
httpmw.ExtractAPIKeyMW(httpmw.ExtractAPIKeyConfig{
542
DB:db,