Skip to content

Conversation

@chenkins
Copy link
Contributor

No description provided.

@chenkins chenkins requested a review from dkocher July 11, 2025 20:09
Comment on lines +43 to +45
final String hubURL = "https://testing.katta.cloud/tamarind";
final String keycloakAuthServerUrl = "https://testing.katta.cloud/kc/realms/tamarind";
final String clientId = "cryptomator";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkocher keep as env vars as well?

final String username = System.getenv().get("username");
final String accountKey = System.getenv().get("account_key");

final String storageProfileId = "45a3cd17-9955-4580-9e60-790d84f5785f";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkocher dito?

Comment on lines 197 to 205
final Scheme scheme = setup.hubURL.startsWith("https://") ? Scheme.https : Scheme.http;
final Protocol profile = factory.find(p -> p.getScheme().equals(scheme) && p.getIdentifier().equals("hub") && p.isEnabled()).getFirst();
factory.find(p -> p.getIdentifier().equals("hub") && !p.getScheme().equals(scheme) && p instanceof Profile).stream().forEach(p -> factory.unregister((Profile) p));
assertNotNull(factory.forName("hub"));
assertNotNull(factory.forName("s3"));
final Host hub = new Host(profile).withCredentials(new Credentials(setup.userConfig.credentials).withOauth(new OAuthTokens(setup.userConfig.credentials.getOauth() != null ? setup.userConfig.credentials.getOauth() : OAuthTokens.EMPTY)));
hub.setHostname(HostParser.parse(setup.hubURL).getHostname());
hub.setDefaultPath(HostParser.parse(setup.hubURL).getDefaultPath());
hub.setPort(scheme.getPort());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkocher is there a more cyberduck-idiomatic way?

@chenkins chenkins force-pushed the feature/manual-listing branch from 724cf5b to 923210c Compare July 12, 2025 07:56
<string>http</string>
<key>Schemes</key>
<array>
<string>http</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A custom scheme would make lookup of profile easier.

@chenkins chenkins force-pushed the feature/manual-listing branch from 923210c to 0027a42 Compare August 12, 2025 07:26
@chenkins chenkins force-pushed the feature/manual-listing branch from 0027a42 to 42b8ab7 Compare August 28, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants