Skip to content

VCell Connection Failure Fix#1471

Merged
Ezequiel-Valencia merged 8 commits intomasterfrom
vcell-reconnection-failure
Apr 10, 2025
Merged

VCell Connection Failure Fix#1471
Ezequiel-Valencia merged 8 commits intomasterfrom
vcell-reconnection-failure

Conversation

@Ezequiel-Valencia
Copy link
Copy Markdown
Contributor

Problem

After extended period of time VCell would be unable to create a new connection to the servers, and perform functions.

Solution

Fix the refresh system within the Java client and Auth0, such that now refresh tokens function appropriately.

@Ezequiel-Valencia Ezequiel-Valencia linked an issue Apr 7, 2025 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • vcell-rest/src/main/resources/application.properties: Language not supported
Comments suppressed due to low confidence (1)

vcell-restclient/src/main/java/org/vcell/restclient/auth/InteractiveLogin.java:288

  • When using audience.getPort() for localhost, consider that if no explicit port is set, getPort() may return -1, resulting in an invalid URL portion. Validate the port value or use a default port if needed.
String audiencePort = audience.getHost().equals("localhost") ? ":" + audience.getPort() : "";

@Ezequiel-Valencia Ezequiel-Valencia self-assigned this Apr 7, 2025
Copy link
Copy Markdown
Member

@jcschaff jcschaff left a comment

Choose a reason for hiding this comment

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

discussed with Ezequiel, looks good, he explained the changes. Approved.

Simplify the configuration process by only having the remote API audience be the changing variable for each environment.
Also ask for refresh tokens from Auth0 by specifying the audience and that we want offline access.
No longer have individual files to execute different NPM commands, but instead provide the NPM command through a dynamic environment variable.
@Ezequiel-Valencia
Copy link
Copy Markdown
Contributor Author

Modified the Java client, Angular app, and Auth0 config.

@jcschaff
Copy link
Copy Markdown
Member

@AvocadoMoon stepped me though the recent Angular security changes - looks good.

@Ezequiel-Valencia Ezequiel-Valencia merged commit 5dee6d4 into master Apr 10, 2025
13 checks passed
@Ezequiel-Valencia Ezequiel-Valencia deleted the vcell-reconnection-failure branch April 10, 2025 15:57
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.

Epic: Use Quarkus Framework and Implement REST API Endpoints For VCell API VCell has faulty reconnection behavior

3 participants