Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use credentials manager for prox credentials #261

Closed
danimo opened this issue Jan 24, 2013 · 8 comments · Fixed by #10867
Closed

Use credentials manager for prox credentials #261

danimo opened this issue Jan 24, 2013 · 8 comments · Fixed by #10867
Assignees
Labels
Milestone

Comments

@danimo
Copy link
Contributor

danimo commented Jan 24, 2013

Keychain


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ghost ghost assigned dragotin Jan 24, 2013
@ghost ghost assigned guruz Jul 24, 2013
@guruz
Copy link
Contributor

guruz commented Jul 24, 2013

<dragotin> Either add proxyPassword() and proxyUser() and proxyState()
<dragotin> or even more generic
<dragotin> with password( const QString& whichOne ) ;-)

@guruz guruz removed their assignment Nov 27, 2014
@guruz
Copy link
Contributor

guruz commented Jul 14, 2015

As requested at other places, this should be able to store credentials for multiple proxies as users might be in different environments and don't want to retype their credentials.
(The question is if it is easy to get a "key" for that as Qt might not disclose on proxyAuthenticationRequired what is the proxy?)

@ghost ghost added this to the 2.0 - Multi-account milestone Jul 15, 2015
ckamm added a commit that referenced this issue Jul 17, 2015
The proxyAuthenticationRequired() signal now goes to the
ProxyAuthHandler class. That class will try to read the proxy settings
from the keychain or ask the user about them.

We won't ask the user for credentials for explicitly configured proxies.
It also does not change how the credentials for explicitly configured
proxies are stored. (see #261)
@ckamm
Copy link
Contributor

ckamm commented Jul 17, 2015

As of 2124098 we now store proxy passwords using "hostname:port" as key. But only for credentials that are entered in a special dialog when using the system proxy. The explicitly configured proxy still stores the credentials the same way as before.

I think we could either remove the proxy auth config from the network options altogether, or change how storage is done.

@guruz guruz modified the milestones: 2.1-next, 2.0 - Multi-account Jul 29, 2015
@dragotin dragotin modified the milestones: backlog, 2.1-next Sep 2, 2015
@danimo danimo removed this from the backlog milestone Feb 22, 2016
@michaelstingl michaelstingl added this to the backlog milestone Dec 3, 2019
@TheOneRing TheOneRing modified the milestones: backlog, 2.8.0 Mar 17, 2021
@TheOneRing TheOneRing modified the milestones: 2.9.0, 2.10.0 Jul 29, 2021
@TheOneRing TheOneRing modified the milestones: 2.11, 2.12 May 11, 2022
@TheOneRing TheOneRing modified the milestones: 4.0, 5.0 Feb 2, 2023
@TheOneRing TheOneRing added the p4-low Low priority label Feb 2, 2023
@TheOneRing
Copy link
Member

We can discuss removal of credentials for manual specified proxies.

@TheOneRing
Copy link
Member

It appears we already use qtkeychain https://github.com/owncloud/client/blob/master/src/gui/proxyauthhandler.cpp

@TheOneRing TheOneRing changed the title Use QtKeyChain for proxy passwords Use credentials manager for prox credentials May 16, 2023
@TheOneRing TheOneRing self-assigned this May 17, 2023
TheOneRing added a commit that referenced this issue May 25, 2023
TheOneRing added a commit that referenced this issue May 25, 2023
TheOneRing added a commit that referenced this issue May 25, 2023
TheOneRing added a commit that referenced this issue May 25, 2023
@saw-jan
Copy link
Member

saw-jan commented Jun 8, 2023

Is there any way to confirm this? Or move it to Done?
CC @TheOneRing

@TheOneRing
Copy link
Member

  • Start 4.x
  • Enter a proxy password
  • Check that its saved to the settings.ini
  • Start 5
  • Check that the password is still restored (ther is something in the password field) and that it was removed from the settings.ini

Ideally we would have a proxy that requires credentials around.

@saw-jan
Copy link
Member

saw-jan commented Jul 3, 2023

Tested with ownCloud ownCloud 5.0.0.11369-daily20230703 511b96

Screenshot from 2023-07-03 15-46-12 Screenshot from 2023-07-03 15-52-35
1. Setting proxy password on 4.2 2. Started 5.0 client
Screenshot from 2023-07-03 15-46-59 Screenshot from 2023-07-03 15-47-24
3. Started 5.0 client 4. on keyring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants