-
Notifications
You must be signed in to change notification settings - Fork 0
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
Document our plugin architecture #2
Comments
Okay! After several weeks of distressingly offline work, I'm about to start sharing it. As @slifty notes, the current architecture calls for one plugin to handle authentication with the Auth0 backend, and a second plugin to fetch and render the appropriate RSS feed. Also as mentioned, we plan to use While the SSO plugin will handle the user experience of negotiating with Auth0, I expect the RSS feed plugin will need a minimal amount of Auth0 interaction to verify the token it reads from We'll want to share some JS between the plugins. At the worst we'll find a way to share it here in this repo, even if each plugin is deployed with its own copy of the shared library. (I definitely don't want to bother deploying shared JS to a CDN or something.) Keys/SecretsBoth plugins will need to be configured with some API keys that we don't want stored in the repo itself. (For SSO, these are the Auth0 domain and client ID; for RSS, these are the Plus feed credentials.) My working design is collect those keys on the Settings section of each plugin's Control area (i.e., the area that shows up in the BuildFire admin to the app owner), then have the widget (i.e., the plugin on the user's device) fetch and use those keys. BuildFire offers a baffling variety of datastores that could back this. I'm genuinely unsure if we want |
Update: After watching the fairly anemic Creating Your First Plugin video, I better understand that |
Looking for the right place to locally store the user token retrieved from Auth0. This will be set by the SSO plugin but read by the RSS plugin. We'd settled on
However, upon uploading the plugins to BuildFire and testing within the app context, I really don't like using one of their network stores to store a local user token, so I'm going to reach out to support. I also don't know the practical differences in the various stores. Which one is most appropriate for an individual user? |
The current thinking is that we will be creating two plugins:
The SSO plugin and RSS plugin will share authentication status via BuildFire's local storage tooling.
We should finalize and document this proposed architecture.
The text was updated successfully, but these errors were encountered: