-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add code documentation to new extension #46
base: extension-as-remote
Are you sure you want to change the base?
Add code documentation to new extension #46
Conversation
I fails to show the login widget in the showcase for me. I see in the console 10.000s of messages that say
I'm using Chrome v116 and Node v18.16.1. Also, I added a Markdown linter to format the README. |
It still doesn't work. |
Are you trying to log in with an identity created on solid playground which no longer exists? (created yesterday) |
No, I'm using my own WebID and pod. |
@rafael-mindreau I got it working. The |
Oh WOW! Good that you mention that, because I've totally forgotten about this. When I added this into the code, I suspected that this might not be static. I had an existential crisis trying to replicate this issue, so I'm glad you found it. I will add this into documentation! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the ESLint settings. Can you make sure that there are no errors/warnings anymore? That way my review will go smoother. Thanks!
I also added some initial comments.
* Queries for an IDP for a given WebID | ||
* We use the IDPs generally for redirecting the user to the login/authorization flow of their IDP | ||
* TODO: If your WebID does not exist or the IDP cannot be determined, this will fail with an error and no fallback | ||
*/ | ||
async _getIDPsFromWebID(webId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should happen by the extension. That way the extension always returns the IDP. This is not security concern, because this data is public in any case and there is not authentication happening at this point.
@@ -28,10 +37,15 @@ export default class IdentityWidget { | |||
console.log('%cDISCONNECT', 'padding: 5px; border-radius: 3px; background: #ff3333; font-weight: bold; color: white', 'Extension got disconnected, replenishing connections...'); | |||
} | |||
|
|||
// TODO: Long-lived connections will shut down after a longer period of inactivity. They are hydrated by opening the connection again after it is closed | |||
// The idea is to only update the connection when it is absolutely needed | |||
// Keep-alive mechanism TODO: check if there isn't a better way of handling this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every TODO should have a issue linked to it.
- fix npm vulnerability - add documentation - pin extension id
…e-sentence lint rules, and fixed the resulting errors - removed prettier dependency - fixed unclear descriptions
Instead of merging, you need to push this code to |
Please comment on parts that are still not clear or need more clarification.