@@ -504,19 +504,11 @@ channel_server_offers_but_client_does_not_take_is_ok(_Config) ->
504504 {continue , _ , _ } = fast_scram :mech_step (ServerState2 , YesGS2Flag ).
505505
506506channel_not_advertise_but_client_could_is_ok (_Config ) ->
507- {ok , ClientState1 } = fast_scram :mech_new (
508- #{
509- entity => client ,
510- hash_method => sha ,
511- username => <<" user" >>,
512- channel_binding => {none , <<>>},
513- auth_data => #{password => <<" pencil" >>}
514- }
515- ),
516507 {ok , ServerState2 } = fast_scram :mech_new (
517508 #{
518509 entity => server ,
519510 hash_method => sha ,
511+ nonce => <<" fyko+d2lbbFgONRv9qkxdawL" >>,
520512 retrieve_mechanism =>
521513 fun (_ ) ->
522514 #{
@@ -527,11 +519,10 @@ channel_not_advertise_but_client_could_is_ok(_Config) ->
527519 end
528520 }
529521 ),
530- {continue , ClientFirst , ClientState3 } = fast_scram :mech_step (ClientState1 , <<>>),
531- {continue , ServerFirst , ServerState4 } = fast_scram :mech_step (ServerState2 , ClientFirst ),
532- {continue , ClientFinal , ClientState5 } = fast_scram :mech_step (ClientState3 , ServerFirst ),
533- {ok , ServerFinal , _ } = fast_scram :mech_step (ServerState4 , ClientFinal ),
534- {ok , _ , _ } = fast_scram :mech_step (ClientState5 , ServerFinal ).
522+ YesGS2Flag = <<" y,,n=user,r=lmGaEB+ze/7giz6VC6KEOw==" >>,
523+ {continue , _ , ServerState4 } = fast_scram :mech_step (ServerState2 , YesGS2Flag ),
524+ ClientFinal = <<" c=eSws,r=lmGaEB+ze/7giz6VC6KEOw==fyko+d2lbbFgONRv9qkxdawL,p=Ab1g6yKcTC3ay2KCQFkjDXdkYak=" >>,
525+ {ok , _ , _ } = fast_scram :mech_step (ServerState4 , ClientFinal ).
535526
536527% % If the channel binding flag was "p" and the server does not support
537528% % the indicated channel binding type, then the server MUST fail authentication.
0 commit comments