inveniosoftware / invenio-github

GitHub integration for Invenio.
https://invenio-github.readthedocs.io
MIT License
6 stars 26 forks source link

config: investigate github app import #107

Closed alejandromumo closed 1 year ago

alejandromumo commented 1 year ago
          question: importing the `REMOTE_APP` could be troublesome if it was replaced by another instance. Perhaps we should get the github remote app using the oauth-client extension.

E.g:

remote = LocalProxy(
        lambda: current_oauthclient.oauth.remote_apps[
            current_app.config["GITHUB_WEBHOOK_RECEIVER_ID"]
        ]
    )

However this is config, can we lazy load?

_Originally posted by @alejandromumo in https://github.com/inveniosoftware/invenio-github/pull/99#discussion_r1250704042_