Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Connect extension with logged in Credentials #9

Merged
merged 26 commits into from
May 22, 2024

Conversation

NicoMorenoSirius
Copy link
Contributor

@NicoMorenoSirius NicoMorenoSirius commented May 21, 2024

Before merging this, the following branches should get merged first:

#6
#7

Both branches are inside this one.

@NicoMorenoSirius NicoMorenoSirius changed the title 86b0g49tw connect extension Connect extension with logged in Credentials May 21, 2024
Copy link
Contributor

@elg0nz elg0nz left a comment

Choose a reason for hiding this comment

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

Looking good too. Let me know when this PR is ready for review and I'll give it the 👍

@@ -8,6 +6,16 @@ addEventListener("install", () => {
});
});

// TODO The same login URL should be the cookie URL
// TODO2 What should we do if user is not logged in?
Copy link
Contributor

Choose a reason for hiding this comment

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

If the user is not logged in, you should send them back with an error message. I'll our the designer for mocks

],
"host_permissions": ["<all_urls>"],
"host_permissions": ["https://*/*", "<all_urls>"],
Copy link
Contributor

Choose a reason for hiding this comment

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

🙏 thanks, this permission stuff always confuses me

@NicoMorenoSirius NicoMorenoSirius marked this pull request as ready for review May 21, 2024 18:37
@NicoMorenoSirius NicoMorenoSirius requested a review from elg0nz May 21, 2024 18:39
Copy link
Contributor

@elg0nz elg0nz left a comment

Choose a reason for hiding this comment

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

LGTM. Re the cookie: we should ask @Luigi-Sirius what he suggests to secure that token :)

const sendCode = (email: string, code: string) => apiCall('auth/email/complete', { email, code })

// TODO see ways to make more secure this cookie...
Copy link
Contributor

Choose a reason for hiding this comment

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

@Luigi-Sirius this is your realm, any thoughts here?

@NicoMorenoSirius NicoMorenoSirius merged commit 11bf4c5 into main May 22, 2024
2 checks passed
@NicoMorenoSirius NicoMorenoSirius deleted the 86b0g49tw-connect-extension branch May 22, 2024 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants