Libsoup client, what to do when username and password changes



Hello!

I need advice about what to do, when the usersname and password changes:

I've a libsoup client which passes the necessary username and password to soup_auth_authenticate()[1] when 
the "authenticate" signal is emitted. It's working fine already. But now my user decides to change the 
username and password at run time. Of course I will not receive the 'authenticate' signal anymore and libsoup 
keeps using the old username and password.

1.) Should I call soup_auth_authenticate() directly to change them? But this function requeues messages and 
currently non are existing. Is this a problem?
2.) Should I delete the SoupSession and create a new SoupSession?
3.) None of these?

Thank you

[1] https://developer.gnome.org/libsoup/stable/SoupAuth.html#soup-auth-authenticate
[2] https://developer.gnome.org/libsoup/stable/SoupSession.html#SoupSession-authenticate


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]