@@ -273,7 +273,7 @@ func TestWrapper_HandleAuthorizeRequest(t *testing.T) {
273273 oauth .CodeChallengeParam : "code_challenge" ,
274274 oauth .CodeChallengeMethodParam : "S256" ,
275275 }
276- ctx .jar .EXPECT ().Parse (gomock .Any (), gomock .Any (), url.Values {"key " : []string {"test_value " }}).Return (requestParams , nil )
276+ ctx .jar .EXPECT ().Parse (gomock .Any (), gomock .Any (), url.Values {"request_uri " : []string {"jar-uri " }}).Return (requestParams , nil )
277277
278278 // handleAuthorizeRequestFromHolder
279279 expectedURL := "https://example.com/authorize?client_id=https://example.com/oauth2/verifier&request_uri=https://example.com/oauth2/verifier/request.jwt/&request_uri_method=get"
@@ -305,7 +305,7 @@ func TestWrapper_HandleAuthorizeRequest(t *testing.T) {
305305 return req
306306 })
307307
308- res , err := ctx .client .HandleAuthorizeRequest (requestContext (map [string ]interface {}{"key " : "test_value " }),
308+ res , err := ctx .client .HandleAuthorizeRequest (requestContext (map [string ]interface {}{"request_uri " : "jar-uri " }),
309309 HandleAuthorizeRequestRequestObject {SubjectID : verifierSubject })
310310
311311 require .NoError (t , err )
@@ -348,7 +348,7 @@ func TestWrapper_HandleAuthorizeRequest(t *testing.T) {
348348 ClientState : "state" ,
349349 RedirectURI : "https://example.com/iam/holder/cb" ,
350350 })
351- callCtx , _ := user .CreateTestSession (requestContext (nil ), holderSubjectID )
351+ callCtx , _ := user .CreateTestSession (requestContext (map [ string ] interface {}{ oauth . RequestURIParam : "jar-uri" } ), holderSubjectID )
352352 clientMetadata := oauth.OAuthClientMetadata {VPFormats : oauth .DefaultOpenIDSupportedFormats ()}
353353 ctx .iamClient .EXPECT ().ClientMetadata (gomock .Any (), "https://example.com/.well-known/authorization-server/oauth2/verifier" ).Return (& clientMetadata , nil )
354354 pdEndpoint := "https://example.com/oauth2/verifier/presentation_definition?scope=test"
@@ -373,7 +373,7 @@ func TestWrapper_HandleAuthorizeRequest(t *testing.T) {
373373 }
374374 ctx .jar .EXPECT ().Parse (gomock .Any (), gomock .Any (), gomock .Any ()).Return (requestParams , nil )
375375
376- res , err := ctx .client .HandleAuthorizeRequest (requestContext (map [string ]interface {}{}),
376+ res , err := ctx .client .HandleAuthorizeRequest (requestContext (map [string ]interface {}{oauth . RequestURIParam : "jar-uri" }),
377377 HandleAuthorizeRequestRequestObject {SubjectID : verifierSubject })
378378
379379 requireOAuthError (t , err , oauth .UnsupportedResponseType , "" )
0 commit comments