@@ -435,7 +435,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
435
435
// This endpoint is required to initialize the OIDC provider.
436
436
// It is used to get the OIDC configuration.
437
437
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 ()))
439
439
440
440
_ = json .NewEncoder (rw ).Encode (f .provider )
441
441
})
@@ -496,7 +496,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
496
496
497
497
mux .Handle (tokenPath , http .HandlerFunc (func (rw http.ResponseWriter , r * http.Request ) {
498
498
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" ,
500
500
slog .Error (err ),
501
501
slog .F ("values" , values .Encode ()),
502
502
)
@@ -595,7 +595,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
595
595
596
596
mux .Handle (userInfoPath , http .HandlerFunc (func (rw http.ResponseWriter , r * http.Request ) {
597
597
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" ,
599
599
slog .Error (err ),
600
600
slog .F ("url" , r .URL .String ()),
601
601
)
@@ -614,7 +614,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
614
614
}))
615
615
616
616
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" )
618
618
set := jose.JSONWebKeySet {
619
619
Keys : []jose.JSONWebKey {
620
620
{
@@ -691,10 +691,10 @@ func (f *FakeIDP) UpdateRefreshClaims(refreshToken string, claims jwt.MapClaims)
691
691
692
692
// SetRedirect is required for the IDP to know where to redirect and call
693
693
// Coderd.
694
- func (f * FakeIDP ) SetRedirect (t testing.TB , url string ) {
694
+ func (f * FakeIDP ) SetRedirect (t testing.TB , u string ) {
695
695
t .Helper ()
696
696
697
- f .cfg .RedirectURL = url
697
+ f .cfg .RedirectURL = u
698
698
}
699
699
700
700
// SetCoderdCallback is optional and only works if not using the IsServing.
0 commit comments