Skip to content

Commit

Permalink
Save OAuth tokens with client id. Fix #15284.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 22, 2023
1 parent 36ae079 commit 78ac9b4
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,14 @@ private static Uri ToUri(Host bookmark)

var targetBuilder = new UriBuilder(PreferencesFactory.get().getProperty("application.container.name"), string.Empty);
var pathBuilder = new StringBuilder();
pathBuilder.Append(protocol.getIdentifier());
if (protocol.isOAuthConfigurable())
{
pathBuilder.Append(protocol.getOAuthClientId());
}
else
{
pathBuilder.Append(protocol.getIdentifier());
}
if (protocol.isHostnameConfigurable() || !(protocol.isTokenConfigurable() || protocol.isOAuthConfigurable()))
{
pathBuilder.Append(":" + bookmark.getHostname());
Expand Down

0 comments on commit 78ac9b4

Please sign in to comment.