encodeAuthenticationResponse