Skip to content

Conversation

@grl-wang
Copy link
Contributor

  1. update the commonAuthViewProvider to use the locally bundled vue.js, instead of to load the vue.js from CDN.
  2. this going to resolve the customer request that When customer is trying to login to IDC via Q they are hitting a URL which is not part of the whitelist urls as per documentation

Problem

Customers complain about need to whitelist the cdnjs.cloudflare.com which doesn't listed in the https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/firewall.html

Solution

update the commonAuthViewProvider to use the locally bundled vue.js, instead of to load the vue.js from CDN.

verified the amazon Q auth view still working as expected after this change.
image


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

1. update the commonAuthViewProvider to use the locally bundled vue.js, instead of
   to load the vue.js from CDN.
2. this going to resolve the customer request that When customer is trying to login to IDC via Q they are hitting a URL which is not part of the whitelist urls as per [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/firewall.html)
@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@grl-wang grl-wang marked this pull request as ready for review June 30, 2025 23:24
@grl-wang grl-wang requested a review from a team as a code owner June 30, 2025 23:24
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.4/vue.global.prod.min.js"></script>
<script src="${vueScript.toString()}"></script>
Copy link
Contributor

@jguoamz jguoamz Jun 30, 2025

Choose a reason for hiding this comment

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

does the version (3.4.4) matter? If the version changes, would it break?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, did local tested with the generated vsix for the amazon Q sign in and sign out, didn't see any issue for the login ux with vue.js file in [3.3.4 which is used in the toolkit package](

).


// Vue.js for webviews
{
target: path.join('../../node_modules', 'vue', 'dist', 'vue.global.prod.js'),
Copy link
Contributor

Choose a reason for hiding this comment

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

please test both Q and toolkit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

verified both Q and toolkit can login of the generated vsix. following is the toolkit login, Q login pasted in the pr description
image

@grl-wang grl-wang merged commit d33bc14 into aws:master Jul 1, 2025
52 of 56 checks passed
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