Skip to content

Commit 2b0ff9c

Browse files
committed
Linting
1 parent 6030a5f commit 2b0ff9c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

coderd/coderdtest/oidctest/idp.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
435435
// This endpoint is required to initialize the OIDC provider.
436436
// It is used to get the OIDC configuration.
437437
mux.Get("/.well-known/openid-configuration", func(rw http.ResponseWriter, r *http.Request) {
438-
f.logger.Info(r.Context(), "HTTP OIDC Config", slog.F("url", r.URL.String()))
438+
f.logger.Info(r.Context(), "http OIDC config", slog.F("url", r.URL.String()))
439439

440440
_ = json.NewEncoder(rw).Encode(f.provider)
441441
})
@@ -496,7 +496,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
496496

497497
mux.Handle(tokenPath, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
498498
values, err := f.authenticateOIDCClientRequest(t, r)
499-
f.logger.Info(r.Context(), "http call token",
499+
f.logger.Info(r.Context(), "http idp call token",
500500
slog.Error(err),
501501
slog.F("values", values.Encode()),
502502
)
@@ -595,7 +595,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
595595

596596
mux.Handle(userInfoPath, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
597597
token, err := f.authenticateBearerTokenRequest(t, r)
598-
f.logger.Info(r.Context(), "http call user info",
598+
f.logger.Info(r.Context(), "http call idp user info",
599599
slog.Error(err),
600600
slog.F("url", r.URL.String()),
601601
)
@@ -614,7 +614,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
614614
}))
615615

616616
mux.Handle(keysPath, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
617-
f.logger.Info(r.Context(), "http call keys")
617+
f.logger.Info(r.Context(), "http call idp /keys")
618618
set := jose.JSONWebKeySet{
619619
Keys: []jose.JSONWebKey{
620620
{
@@ -691,10 +691,10 @@ func (f *FakeIDP) UpdateRefreshClaims(refreshToken string, claims jwt.MapClaims)
691691

692692
// SetRedirect is required for the IDP to know where to redirect and call
693693
// Coderd.
694-
func (f *FakeIDP) SetRedirect(t testing.TB, url string) {
694+
func (f *FakeIDP) SetRedirect(t testing.TB, u string) {
695695
t.Helper()
696696

697-
f.cfg.RedirectURL = url
697+
f.cfg.RedirectURL = u
698698
}
699699

700700
// SetCoderdCallback is optional and only works if not using the IsServing.

coderd/userauth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestOIDCOauthLoginWithExisting(t *testing.T) {
6767
helper.ExpireOauthToken(t, api.Database, userClient)
6868

6969
// Instead of refreshing, just log in again.
70-
userClient, _ = helper.Login(t, claims)
70+
helper.Login(t, claims)
7171
}
7272

7373
func TestUserLogin(t *testing.T) {

0 commit comments

Comments
 (0)