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

sitewide api_key #9

Closed
missinglink opened this issue Jun 9, 2021 · 2 comments
Closed

sitewide api_key #9

missinglink opened this issue Jun 9, 2021 · 2 comments

Comments

@missinglink
Copy link
Contributor

In the case where the component is rolled out widely across a medium/large website, the HTML code may exist in multiple views across the codebase.

Changing the API key in this scenario becomes a bit of a chore.

Would it be possible to define the api_key parameter once per installation and then omit the api_key attribute when embedding the component?

@mxlje
Copy link
Contributor

mxlje commented Jun 9, 2021

I think we should keep this in mind for a future release but not have it at launch.

@missinglink
Copy link
Contributor Author

As discussed today, the immediate solution for this is to use the includes/templates/dynamic code generation tooling available from the web framework to have a single place in the codebase which can implement defaults and be a single place to make global changes.

@mxlje mxlje closed this as completed Jun 10, 2021
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

No branches or pull requests

2 participants