@@ -1032,20 +1032,23 @@ introspect_opaque_token_returns_401_from_auth_server(Config) ->
10321032
10331033oauth_bootstrap_with_jwt_token_in_header (Config ) ->
10341034 URI = rabbit_mgmt_test_util :uri_base_from (Config , 0 , " " ) ++ " js/oidc-oauth/bootstrap.js" ,
1035- Result = httpc :request (get , {URI , [{" Authorization" , " bearer active " }]}, [], []),
1035+ Result = httpc :request (get , {URI , [{" Authorization" , " bearer abc.dee.fff " }]}, [], []),
10361036 {ok , {{_HTTP , 200 , _ }, _Headers , ResBody }} = Result ,
10371037 ct :log (" resbody: ~p " , [ResBody ]),
1038- case string :find (ResBody ," set_token_auth(" ) of
1038+ case string :find (ResBody ," set_token_auth('abc.dee.fff') " ) of
10391039 nomatch -> ct :fail (" expected setting token" );
1040- Reminder ->
1041- {match , [Token | _ ]} = re :run (Reminder , " '([^']*)'" , [{capture , [1 ], list }]),
1042- ? assertEqual (true , oauth2_client :is_jwt_token (Token ))
1040+ _ -> ok
10431041 end .
10441042
10451043oauth_bootstrap_with_jwt_token_in_cookie (Config ) ->
10461044 URI = rabbit_mgmt_test_util :uri_base_from (Config , 0 , " " ) ++ " js/oidc-oauth/bootstrap.js" ,
1047- Result = httpc :request (get , {URI , [{" Authorization" , " bearer active" }]}, [], []),
1048- ct :log (" response idp: ~p ~p " , [URI , Result ]).
1045+ Result = httpc :request (get , {URI , [{" cookie" , " access_token=abc.dee.fff" }]}, [], []),
1046+ {ok , {{_HTTP , 200 , _ }, _Headers , ResBody }} = Result ,
1047+ ct :log (" resbody: ~p " , [ResBody ]),
1048+ case string :find (ResBody ," set_token_auth('abc.dee.fff')" ) of
1049+ nomatch -> ct :fail (" expected setting token" );
1050+ _ -> ok
1051+ end .
10491052
10501053oauth_bootstrap_with_opaque_token_in_cookie (Config ) ->
10511054 URI = rabbit_mgmt_test_util :uri_base_from (Config , 0 , " " ) ++ " js/oidc-oauth/bootstrap.js" ,
0 commit comments