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

#fix BOT-336: Replaced credential authorization workflow with PKCE workflow #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

4kreed
Copy link
Collaborator

@4kreed 4kreed commented Dec 2, 2024

No description provided.

@4kreed 4kreed requested a review from fercsrti77 December 2, 2024 17:57
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We no longer need to have a secrets.json file unless we want to (for the Auth0 config that is set up in auth.ts.

None of the Auth0Config fields can be considered sensitive information.

*/
private static waitForAuthCode(): Promise<{ authCode: string | null, receivedState: string | null }> {
return new Promise((resolve) => {
const server = http.createServer((req, res) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have not been able to find an alternative approach for this. We need to somehow been able to handle the Auth0 callback. The problem with this approach is that we are creating a http server using the 3000 port (we can change it). This port may be in use in the developer (that uses this extension) machine and also we can't choose the port dynamically because the URL for the callback needs to be statically added to the applicacion in Auth0 dashboard.

Copy link
Collaborator Author

@4kreed 4kreed Dec 4, 2024

Choose a reason for hiding this comment

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

Some of the dependencies we were using had vulnerabilities according to npm. I ran npm audit fix to fix those

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.

1 participant